From df74733f27d4a1b05bbd3e285c8d652db5089a73 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 4 Nov 2024 15:49:46 +0000 Subject: [PATCH] Improve printed layout of world_location_news template --- app/views/world_location_news/show.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/world_location_news/show.html.erb b/app/views/world_location_news/show.html.erb index ca7073e45..3a45db0e6 100644 --- a/app/views/world_location_news/show.html.erb +++ b/app/views/world_location_news/show.html.erb @@ -6,7 +6,7 @@ <%= tag("meta", name: "description", content: @world_location_news.description) if @world_location_news.description %> <% end %> -
<%= lang_attribute %>> +
<%= lang_attribute %>>
<%= render "govuk_publishing_components/components/heading", { context: I18n.t("world_location_news.types.#{@world_location_news.type}"), @@ -30,7 +30,7 @@
-
+
<%= lang_attribute %>> <% if @world_location_news.ordered_featured_documents&.any? %>
<% if I18n.locale == :en %> -
+
<%= render "govuk_publishing_components/components/heading", { @@ -89,7 +89,7 @@ <% end %> <% if @world_location_news.mission_statement.present? %> -
<%= lang_attribute %>> +
<%= lang_attribute %>>
<%= render "govuk_publishing_components/components/heading", { text: I18n.t("world_location_news.headings.mission"), @@ -105,7 +105,7 @@ <% end %> <% if I18n.locale == :en && (@world_location_news.announcements.any? || @world_location_news.publications.any? || @world_location_news.statistics.any?) %> -
+
<%= render "govuk_publishing_components/components/heading", { text: I18n.t("world_location_news.headings.documents"), @@ -123,7 +123,7 @@ <% end %> <% if @world_location_news.organisations&.any? %> -
+
<%= render "govuk_publishing_components/components/heading", { @@ -157,7 +157,7 @@ <% end %> <% if @world_location_news.worldwide_organisations&.any? %> -
+
<% @world_location_news.worldwide_organisations.each do |organisation| %> <%= render "govuk_publishing_components/components/heading", {