Skip to content

Commit

Permalink
Merge pull request #3795 from alphagov/redesign-org-page
Browse files Browse the repository at this point in the history
Reorder number 10 org page
  • Loading branch information
AshGDS authored Dec 5, 2024
2 parents bd1be0c + be1dbd9 commit 0cf9e59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@
} %>
</div>
</div>

<% @documents.remaining_featured_news.first(6).in_groups_of(3, false) do |news| %>
<%
first_document = @documents.remaining_featured_news.first
first_document[:context][:text] = "Featured"
documents_without_first = @documents.remaining_featured_news.drop(1).first(6)
%>
<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", first_document.merge({ large: true }) %>
</div>
</div>
<% documents_without_first.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| %>
<% classes = %w[] %>
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: 'featured_news_no10' %>
<%= render partial: 'latest_news' %>
<%= render partial: 'featured_news_small' %>
<%= render partial: 'videos' if @documents.has_promotional_video_feature? %>
<%= render partial: 'promotional_features_side_by_side' %>
<% else %>
Expand Down

0 comments on commit 0cf9e59

Please sign in to comment.