Skip to content

Commit

Permalink
Reorder number 10 org page
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Oct 15, 2024
1 parent 3333d3a commit 51fcc25
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion app/views/organisations/_featured_news_small.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,23 @@
} %>
</div>
</div>

<div class="govuk-grid-row">
<div class="govuk-grid-column-full" data-module="ga4-link-tracker" data-ga4-track-links-only data-ga4-link="<%= ga4_image_card_json %>">
<%= render "govuk_publishing_components/components/image_card", {
large: true,
href: "/still-not-a-page",
image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/91397/s712_SG_Swear_in_1_.jpg",
image_alt: "some meaningful alt text please",
context: {
text: "Featured",
date: "2024-10-30".to_date
},
brand: "prime-ministers-office-10-downing-street",
heading_text: "An Example Headline",
description: "Following a news report that something has happened, further details are emerging of the thing that has happened and what that means for you."
} %>
</div>
</div>
<% @documents.remaining_featured_news.first(6).in_groups_of(3, false) do |news| %>
<div class="govuk-grid-row" data-module="ga4-link-tracker" data-ga4-track-links-only data-ga4-link="<%= ga4_image_card_json %>">
<% news.each do |news_item| %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/organisations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
content_item: @organisation.content_item.content_item_data %>
<% if @organisation.is_no_10? %>
<%= render partial: 'latest_news' %>
<%= render partial: 'featured_news_small' %>
<%= render partial: 'latest_news' %>
<%= render partial: 'videos' if @documents.has_promotional_video_feature? %>
<%= render partial: 'promotional_features_side_by_side' %>
<% else %>
Expand Down

0 comments on commit 51fcc25

Please sign in to comment.