Browse Source

fixed titles for non sup

pull/642/head
JG 3 years ago
parent
commit
69d3c33fd9
  1. 2
      app/views/case_logs/index.html.erb
  2. 2
      app/views/organisations/show.html.erb
  3. 2
      app/views/organisations/users.html.erb
  4. 2
      app/views/users/index.html.erb

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

@ -2,7 +2,7 @@
<% if @searched.present? %> <% if @searched.present? %>
<% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %> <% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %> <% else %>
<% title = current_user.support? ? "Logs" : "#{current_user.organisation.name} (Logs)" %> <% title = "Logs" %>
<% end %> <% end %>
<% content_for :title, title %> <% content_for :title, title %>

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

@ -1,4 +1,4 @@
<% title = "#{@organisation.name} (Organisation details)" %> <% title = current_user.support? ? "#{@organisation.name} (Organisation details)" : "Organisation details" %>
<% content_for :title, title %> <% content_for :title, title %>
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">

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

@ -2,7 +2,7 @@
<% if @searched.present? %> <% if @searched.present? %>
<% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %> <% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %> <% else %>
<% title = "#{@organisation.name} (Users)" %> <% title = "#{@organisation.name} (Users)" %>
<% end %> <% end %>
<% content_for :title, title %> <% content_for :title, title %>

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

@ -2,7 +2,7 @@
<% if @searched.present? %> <% if @searched.present? %>
<% title = "#{current_user.support? ? 'Users' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %> <% title = "#{current_user.support? ? 'Users' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %> <% else %>
<% title = current_user.support? ? "Users" : "#{current_user.organisation.name} (Users)" %> <% title = "Users" %>
<% end %> <% end %>
<% content_for :title, title %> <% content_for :title, title %>

Loading…
Cancel
Save