diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be794..58d4c65f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,5 @@ module ApplicationHelper + def support_interface? + request.path.start_with?("/support") + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 982cd792..d943acda 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -33,6 +33,11 @@ else header.with_navigation_item(href: "/sign-in", text: "Sign in") end + + if support_interface? + header.with_navigation_item(href: "/support/features", text: "Features") + header.with_navigation_item(href: "/support/uploads/new", text: "File upload") + end end %>