Browse Source

fixed titles

pull/641/head
JG 3 years ago
parent
commit
7c422a0c3c
  1. 7
      app/views/case_logs/index.html.erb
  2. 4
      app/views/organisations/index.html.erb
  3. 6
      app/views/organisations/logs.html.erb
  4. 3
      app/views/organisations/show.html.erb
  5. 6
      app/views/organisations/users.html.erb
  6. 6
      app/views/users/index.html.erb

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

@ -1,11 +1,12 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% if @searched.present? %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total logs)" %>
<% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>
<% title = "Your organisation (Logs)" %>
<% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name}" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if !current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>

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

@ -1,10 +1,12 @@
<% item_label = @pagy.count > 1 ? "organisations" : "organisation" %>
<% if @searched.present? %>
<% title = "Organisations (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total organisations)" %>
<% title = "Organisations (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %>
<% title = "Organisations" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if current_user.support? && request.path == "/organisations" %>
Organisations

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

@ -1,10 +1,12 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% if @searched.present? %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total logs)" %>
<% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>
<% title = "Your organisation (Logs)" %>
<% title = "#{@organisation.name} (Logs)" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
</h1>

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

@ -1,3 +1,6 @@
<% title = "#{@organisation.name} (Organisation details)" %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if !current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>

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

@ -1,10 +1,12 @@
<% item_label = @pagy.count > 1 ? "users" : "user" %>
<% if @searched.present? %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total users)" %>
<% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %>
<% title = "Your organisation (User)" %>
<% title = "#{@organisation.name} (Users)" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% if current_user.support? %>
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>

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

@ -1,10 +1,12 @@
<% item_label = @pagy.count > 1 ? "users" : "user" %>
<% if @searched.present? %>
<% title = "Your organisation (#{@pagy.count} #{item_label} matching ‘#{@searched}’ of #{@total_count} total users)" %>
<% title = "#{current_user.support? ? 'Users' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %>
<% title = "Your organisation (Users)" %>
<% title = "#{current_user.support? ? 'Users' : current_user.organisation.name}" %>
<% end %>
<% content_for :title, title %>
<h1 class="govuk-heading-l">
<% unless current_user.support? %>
<span class="govuk-caption-l"><%= current_user.organisation.name %></span>

Loading…
Cancel
Save