From bd6155be7bcf2e79f66d2b81e7f03979065dfece Mon Sep 17 00:00:00 2001 From: Steve Laing Date: Wed, 2 Aug 2023 16:24:29 +0100 Subject: [PATCH] Add support UI navigation items --- app/helpers/application_helper.rb | 3 +++ app/views/layouts/application.html.erb | 5 +++++ 2 files changed, 8 insertions(+) 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 %>