From 69d3c33fd913e4bc09febc1c011aea44c4300d49 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 6 Jun 2022 17:05:51 +0100 Subject: [PATCH] fixed titles for non sup --- app/views/case_logs/index.html.erb | 2 +- app/views/organisations/show.html.erb | 2 +- app/views/organisations/users.html.erb | 2 +- app/views/users/index.html.erb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index 0580e18a9..c59d4f255 100644 --- a/app/views/case_logs/index.html.erb +++ b/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 %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 7425c0c13..8d1d7830c 100644 --- a/app/views/organisations/show.html.erb +++ b/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 %>

diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb index 1776bc4cd..5e1b3c2fd 100644 --- a/app/views/organisations/users.html.erb +++ b/app/views/organisations/users.html.erb @@ -2,7 +2,7 @@ <% if @searched.present? %> <% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %> <% else %> - <% title = "#{@organisation.name} (Users)" %> + <% title = "#{@organisation.name} (Users)" %> <% end %> <% content_for :title, title %> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 7bd9b9be5..81e4c3fa0 100644 --- a/app/views/users/index.html.erb +++ b/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 %>