Browse Source

Consistent Org pages

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

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

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

2
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" %>

Loading…
Cancel
Save