Browse Source

Consistent page titles

pull/616/head
baarkerlounger 3 years ago
parent
commit
d2deab435f
  1. 6
      app/views/layouts/organisations.html.erb
  2. 2
      app/views/organisations/show.html.erb

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

@ -1,11 +1,9 @@
<% content_for :content do %>
<h1 class="govuk-heading-l">
<% if current_user.support? %>
<% if current_user.support? && request.path != "/organisations" %>
<span class="govuk-caption-l"><%= @organisation.name %></span>
<%= content_for(:title) %>
<% else %>
Your organisation <%= content_for(:title) %>
<% end %>
<%= content_for(:title) %>
</h1>
<% items = tab_items(current_user) %>

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

@ -1,4 +1,4 @@
<% content_for :title, current_user.support? ? "Details" : "Your organisation (Details)" %>
<% content_for :title, current_user.support? ? "Details" : "Your organisation" %>
<% content_for :tab_title do %>
<%= "Details" %>

Loading…
Cancel
Save