|
|
@ -2,11 +2,8 @@ |
|
|
|
<% title = format_title(nil, current_user.support? ? "About this organisation" : "About your organisation", current_user, nil, nil, @organisation.name) %> |
|
|
|
<% title = format_title(nil, current_user.support? ? "About this organisation" : "About your organisation", current_user, nil, nil, @organisation.name) %> |
|
|
|
<% content_for :title, title %> |
|
|
|
<% content_for :title, title %> |
|
|
|
|
|
|
|
|
|
|
|
<% if !current_user.support? %> |
|
|
|
<% locals = current_user.support? ? { main: @organisation.name, sub: nil } : { main: "About your organisation", sub: current_user.organisation.name }%> |
|
|
|
<%= render partial: "organisations/headings", locals: { main: current_user.organisation.name, sub: "About your organisation" } %> |
|
|
|
<%= render partial: "organisations/headings", locals: locals %> |
|
|
|
<% else %> |
|
|
|
|
|
|
|
<%= render partial: "organisations/headings", locals: { main: @organisation.name, sub: nil } %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if current_user.support? %> |
|
|
|
<% if current_user.support? %> |
|
|
|
<%= render SubNavigationComponent.new( |
|
|
|
<%= render SubNavigationComponent.new( |
|
|
|