From 29877b1ff03a05753ec6a37eeb0741d949622e52 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 26 May 2022 15:31:01 +0100 Subject: [PATCH] Consistent Org pages --- app/views/layouts/organisations.html.erb | 7 ++++++- app/views/organisations/show.html.erb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/organisations.html.erb b/app/views/layouts/organisations.html.erb index 0feff9918..c7c3ff2db 100644 --- a/app/views/layouts/organisations.html.erb +++ b/app/views/layouts/organisations.html.erb @@ -1,6 +1,11 @@ <% content_for :content do %>

- <%= organisation_header(request.path, current_user, @organisation) %> + <% if current_user.support? %> + <%= @organisation.name %> + <%= content_for(:title) %> + <% else %> + Your organisation <%= content_for(:title) %> + <% end %>

<% items = tab_items(current_user) %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index ecd36da73..0d726848d 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Your organisation (Details)" %> +<% content_for :title, current_user.support? ? "Details" : "Your organisation (Details)" %> <% content_for :tab_title do %> <%= "Details" %>