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/users/index.html.erb

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

@ -2,7 +2,7 @@
<% if @searched.present? %>
<% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>
<% title = current_user.support? ? "Logs" : "#{current_user.organisation.name} (Logs)" %>
<% title = "Logs" %>
<% end %>
<% 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 %>
<h1 class="govuk-heading-l">

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

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

Loading…
Cancel
Save