|
|
@ -65,15 +65,15 @@ |
|
|
|
<% if !current_user.nil? %> |
|
|
|
<% if !current_user.nil? %> |
|
|
|
<% if current_user.support? %> |
|
|
|
<% if current_user.support? %> |
|
|
|
<% items = [ |
|
|
|
<% items = [ |
|
|
|
{ name: "Organisations", url: "/organisations" }, |
|
|
|
{ name: "Organisations", url: "/organisations", comparable_urls: ["/details", "/organisations"] }, |
|
|
|
{ name: "Users", url: "/users" }, |
|
|
|
{ name: "Users", url: "/users", comparable_urls: ["/users", "/account"] }, |
|
|
|
{ name: "Logs", url: case_logs_path }, |
|
|
|
{ name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] }, |
|
|
|
] %> |
|
|
|
] %> |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<% items = [ |
|
|
|
<% items = [ |
|
|
|
{ name: "Logs", url: case_logs_path }, |
|
|
|
{ name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] }, |
|
|
|
{ name: "Users", url: users_organisation_path(current_user.organisation) }, |
|
|
|
{ name: "Users", url: users_organisation_path(current_user.organisation), comparable_urls: ["/users", "/account"] }, |
|
|
|
{ name: "About your organisation", url: "/organisations/#{current_user.organisation.id}" }, |
|
|
|
{ name: "About your organisation", url: "/organisations/#{current_user.organisation.id}", comparable_urls: ["/details"] }, |
|
|
|
] %> |
|
|
|
] %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<%= render PrimaryNavigationComponent.new(items:) %> |
|
|
|
<%= render PrimaryNavigationComponent.new(items:) %> |
|
|
|