Browse Source

Merge pull request #520 from communitiesuk/highlight-organisation-nav

Ensure organisation link in primary navigation is highlighted when relevant
pull/523/head
Paul Robert Lloyd 3 years ago committed by GitHub
parent
commit
75e698c4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/views/layouts/application.html.erb

2
app/views/layouts/application.html.erb

@ -75,7 +75,7 @@
<% items = [ <% items = [
{ name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] }, { name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] },
{ name: "Users", url: users_organisation_path(current_user.organisation), comparable_urls: ["/users", "/account"] }, { name: "Users", url: users_organisation_path(current_user.organisation), comparable_urls: ["/users", "/account"] },
{ name: "About your organisation", url: "/organisations/#{current_user.organisation.id}", comparable_urls: ["/details"] }, { name: "About your organisation", url: "/organisations/#{current_user.organisation.id}", comparable_urls: ["/organisations"] },
] %> ] %>
<% end %> <% end %>
<%= render PrimaryNavigationComponent.new(items:) %> <%= render PrimaryNavigationComponent.new(items:) %>

Loading…
Cancel
Save