Skip to content

Commit

Permalink
Improve printed layout of world_location_news template
Browse files Browse the repository at this point in the history
  • Loading branch information
matthillco committed Jan 16, 2025
1 parent ecb49d7 commit df74733
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/world_location_news/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%= tag("meta", name: "description", content: @world_location_news.description) if @world_location_news.description %>
<% end %>

<div class="govuk-grid-row" <%= dir_attribute %> <%= lang_attribute %>>
<div class="govuk-grid-row gem-print-columns-none" <%= dir_attribute %> <%= lang_attribute %>>
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
context: I18n.t("world_location_news.types.#{@world_location_news.type}"),
Expand All @@ -30,7 +30,7 @@
</div>
</div>

<div class="govuk-grid-row">
<div class="govuk-grid-row gem-print-columns-none">
<div class="govuk-grid-column-full" <%= dir_attribute %> <%= lang_attribute %>>
<% if @world_location_news.ordered_featured_documents&.any? %>
<section id="featured">
Expand All @@ -57,7 +57,7 @@
</div>

<% if I18n.locale == :en %>
<div class="govuk-grid-row">
<div class="govuk-grid-row gem-print-columns-none">
<div class="govuk-grid-column-two-thirds govuk-!-padding-bottom-7">
<section id="latest">
<%= render "govuk_publishing_components/components/heading", {
Expand Down Expand Up @@ -89,7 +89,7 @@
<% end %>

<% if @world_location_news.mission_statement.present? %>
<div class="govuk-grid-row" <%= dir_attribute %> <%= lang_attribute %>>
<div class="govuk-grid-row gem-print-columns-none" <%= dir_attribute %> <%= lang_attribute %>>
<div class="govuk-grid-column-two-thirds govuk-!-margin-bottom-6">
<%= render "govuk_publishing_components/components/heading", {
text: I18n.t("world_location_news.headings.mission"),
Expand All @@ -105,7 +105,7 @@
<% end %>

<% if I18n.locale == :en && (@world_location_news.announcements.any? || @world_location_news.publications.any? || @world_location_news.statistics.any?) %>
<div class="govuk-grid-row">
<div class="govuk-grid-row gem-print-columns-none">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
text: I18n.t("world_location_news.headings.documents"),
Expand All @@ -123,7 +123,7 @@
<% end %>

<% if @world_location_news.organisations&.any? %>
<div class="govuk-grid-row">
<div class="govuk-grid-row gem-print-columns-none">
<div class="govuk-grid-column-two-thirds govuk-!-padding-bottom-7">
<section id="organisations">
<%= render "govuk_publishing_components/components/heading", {
Expand Down Expand Up @@ -157,7 +157,7 @@
<% end %>

<% if @world_location_news.worldwide_organisations&.any? %>
<div class="govuk-grid-row">
<div class="govuk-grid-row gem-print-columns-none">
<div class="govuk-grid-column-two-thirds govuk-!-padding-bottom-7">
<% @world_location_news.worldwide_organisations.each do |organisation| %>
<%= render "govuk_publishing_components/components/heading", {
Expand Down

0 comments on commit df74733

Please sign in to comment.