Skip to content

Commit

Permalink
Add support UI navigation items
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Aug 7, 2023
1 parent 9d96411 commit bd6155b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
module ApplicationHelper
def support_interface?
request.path.start_with?("/support")
end
end
5 changes: 5 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

<div class="govuk-width-container">
Expand Down

0 comments on commit bd6155b

Please sign in to comment.