Browse Source

correct headings

pull/641/head
JG 3 years ago
parent
commit
e3e2807f01
  1. 11
      app/views/case_logs/index.html.erb
  2. 23
      app/views/layouts/organisations.html.erb
  3. 14
      app/views/organisations/index.html.erb
  4. 8
      app/views/organisations/logs.html.erb
  5. 13
      app/views/organisations/show.html.erb
  6. 10
      app/views/organisations/users.html.erb
  7. 11
      app/views/users/index.html.erb

11
app/views/case_logs/index.html.erb

@ -6,11 +6,12 @@
<% title = "Your organisation (Logs)" %>
<% end %>
<% content_for :title, title %>
<% content_for :tab_title do %>
<%= "Logs" %>
<% end %>
<h1 class="govuk-heading-l">
<% if !current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>
<% end %>
Logs
</h1>
<div class="app-filter-layout" data-controller="filter-layout">
<div class="govuk-button-group app-filter-toggle">

23
app/views/layouts/organisations.html.erb

@ -1,16 +1,17 @@
<% content_for :content do %>
<h1 class="govuk-heading-l">
<% if current_user.support? && request.path != "/organisations" %>
<span class="govuk-caption-l"><%= @organisation.name %></span>
<% end %>
<%= content_for(:title) %>
</h1>
<%# <% content_for :content do %1> %>
<%# <h1 class="govuk-heading-l"> %>
<%# <% if current_user.support? && request.path != "/organisations" %1> %>
<%# <span class="govuk-caption-l"><%= @organisation.name %1></span> %>
<%# <% end %1> %>
<%# <%= content_for(:title) %1> %>
<%# </h1> %>
<% items = tab_items(current_user) %>
<%# <% items = tab_items(current_user) %1> %>
<h2 class="govuk-visually-hidden"><%= content_for(:tab_title) %></h2>
<%# <h2 class="govuk-visually-hidden"><%= content_for(:tab_title) %1></h2> %>
<%= content_for?(:organisations_content) ? yield(:organisations_content) : yield %>
<% end %>
<%# <%= content_for?(:organisations_content) ? yield(:organisations_content) : yield %1> %>
<%# <% end %1> %>
<%# <%= content_for?(:organisations_content) ? yield(:organisations_content) : yield %1> %>
<%= render template: "layouts/application" %>

14
app/views/organisations/index.html.erb

@ -5,7 +5,19 @@
<% title = "Organisations" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if current_user.support? && request.path == "/organisations" %>
Organisations
<% end %>
<% if current_user.support? && request.path != "/organisations" %>
<span class="govuk-caption-l"><%= @organisation.name %></span>
<h1 class="govuk-heading-l">Organisations</h1>
<% end %>
</h1>
<% items = tab_items(current_user) %>
<h2 class="govuk-visually-hidden">Organisations</h2>
<%= render SearchComponent.new(current_user:, search_label: "Search by organisation name", value: @searched) %>

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

@ -5,11 +5,11 @@
<% title = "Your organisation (Logs)" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
</h1>
<% content_for :tab_title do %>
<%= "Logs" %>
<% end %>
<h2 class="govuk-visually-hidden">Logs</h2>
<%= render SubNavigationComponent.new(
items: secondary_items(request.path, @organisation.id),

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

@ -1,8 +1,13 @@
<% content_for :title, current_user.support? ? "Details" : "Your organisation" %>
<h1 class="govuk-heading-l">
<% if !current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>
About your organisation
<% else %>
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
<% end %>
</h1>
<% content_for :tab_title do %>
<%= "Details" %>
<% end %>
<h2 class="govuk-visually-hidden">About this organisation</h2>
<% if current_user.support? %>
<%= render SubNavigationComponent.new(

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

@ -5,11 +5,13 @@
<% title = "Your organisation (User)" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if current_user.support? %>
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
<% end %>
</h1>
<% content_for :tab_title do %>
<%= "Users" %>
<% end %>
<h2 class="govuk-visually-hidden">Users</h2>
<%= render SubNavigationComponent.new(
items: secondary_items(request.path, @organisation.id),

11
app/views/users/index.html.erb

@ -5,11 +5,14 @@
<% title = "Your organisation (Users)" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% unless current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>
<% end %>
Users
</h1>
<% content_for :tab_title do %>
<%= "Users" %>
<% end %>
<h2 class="govuk-visually-hidden">Users</h2>
<% if current_user.data_coordinator? || current_user.support? %>
<%= govuk_button_link_to "Invite user", new_user_path, html: { method: :get } %>

Loading…
Cancel
Save