Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
beccapearce committed Jan 9, 2025
1 parent 449d130 commit 025a854
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/views/content_items/worldwide_organisation/_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
<% if @content_item.sponsoring_organisations.present? %>
<header class="worldwide-organisation-header govuk-grid-row">
<div class="govuk-grid-column-two-thirds worldwide-organisation-header__logo">
<%= render "govuk_publishing_components/components/organisation_logo", {
organisation: @content_item.organisation_logo,
<%= render "govuk_publishing_components/components/heading", {
text: @content_item.title,
heading_level: 1,
inline: true,
} %>
</div>
<% else %>
<header class="worldwide-organisation-header govuk-grid-row">
<div class="govuk-grid-column-two-thirds worldwide-organisation-header__logo">
<%= render "govuk_publishing_components/components/organisation_logo", {
organisation: @content_item.organisation_logo,
heading_level: 1,
inline: true,
} %>
</div>
<% end %>

<div class="govuk-grid-column-one-third govuk-!-padding-top-2">
<% if @content_item.available_translations.length > 1 %>
Expand Down

0 comments on commit 025a854

Please sign in to comment.