Browse Source

Ensure organisation link in primary navigation is highlighed when relevant

pull/520/head
Paul Robert Lloyd 3 years ago
parent
commit
79cb6926b2
  1. 2
      app/views/layouts/application.html.erb

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

@ -75,7 +75,7 @@
<% items = [
{ name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] },
{ 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 %>
<%= render PrimaryNavigationComponent.new(items:) %>

Loading…
Cancel
Save