Browse Source

cleaner code

pull/643/head
JG 3 years ago
parent
commit
7593332f7f
  1. 2
      app/views/organisations/logs.html.erb
  2. 2
      app/views/organisations/show.html.erb
  3. 4
      app/views/organisations/users.html.erb

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

@ -4,7 +4,7 @@
<% content_for :title, title %> <% content_for :title, title %>
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">
<h1 class="govuk-heading-l"><%= @organisation.name %></h1> <%= @organisation.name %>
</h1> </h1>
<%= render SubNavigationComponent.new( <%= render SubNavigationComponent.new(

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

@ -7,7 +7,7 @@
<span class="govuk-caption-l"><%= current_user.organisation.name %></span> <span class="govuk-caption-l"><%= current_user.organisation.name %></span>
About your organisation About your organisation
<% else %> <% else %>
<h1 class="govuk-heading-l"><%= @organisation.name %></h1> <%= @organisation.name %>
<% end %> <% end %>
</h1> </h1>

4
app/views/organisations/users.html.erb

@ -4,9 +4,7 @@
<% content_for :title, title %> <% content_for :title, title %>
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">
<% if current_user.support? %> <%= @organisation.name %>
<h1 class="govuk-heading-l"><%= @organisation.name %></h1>
<% end %>
</h1> </h1>
<%= render SubNavigationComponent.new( <%= render SubNavigationComponent.new(

Loading…
Cancel
Save