Browse Source

fixed sub nav

pull/642/head
JG 3 years ago
parent
commit
0fe2b16b0b
  1. 4
      app/views/organisations/logs.html.erb
  2. 4
      app/views/organisations/show.html.erb
  3. 4
      app/views/organisations/users.html.erb

4
app/views/organisations/logs.html.erb

@ -11,12 +11,12 @@
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
</h1>
<h2 class="govuk-visually-hidden">Logs</h2>
<%= render SubNavigationComponent.new(
items: secondary_items(request.path, @organisation.id),
) %>
<h2 class="govuk-visually-hidden">Logs</h2>
<div class="app-filter-layout" data-controller="filter-layout">
<%= render partial: "case_logs/log_filters" %>
<div class="app-filter-layout__content">

4
app/views/organisations/show.html.erb

@ -10,14 +10,14 @@
<% end %>
</h1>
<h2 class="govuk-visually-hidden">About this organisation</h2>
<% if current_user.support? %>
<%= render SubNavigationComponent.new(
items: secondary_items(request.path, @organisation.id),
) %>
<% end %>
<h2 class="govuk-visually-hidden">About this organisation</h2>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">
<%= govuk_summary_list do |summary_list| %>

4
app/views/organisations/users.html.erb

@ -13,12 +13,12 @@
<% end %>
</h1>
<h2 class="govuk-visually-hidden">Users</h2>
<%= render SubNavigationComponent.new(
items: secondary_items(request.path, @organisation.id),
) %>
<h2 class="govuk-visually-hidden">Users</h2>
<% if current_user.data_coordinator? || current_user.support? %>
<%= govuk_button_link_to "Invite user", new_user_path(organisation_id: @organisation.id), html: { method: :get } %>
<% end %>

Loading…
Cancel
Save