diff --git a/app/views/organisations/_featured_news_small.html.erb b/app/views/organisations/_featured_news_no10.html.erb similarity index 67% rename from app/views/organisations/_featured_news_small.html.erb rename to app/views/organisations/_featured_news_no10.html.erb index ac26a31fd..ce6b25424 100644 --- a/app/views/organisations/_featured_news_small.html.erb +++ b/app/views/organisations/_featured_news_no10.html.erb @@ -17,8 +17,17 @@ } %> - - <% @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) + %> +
+
+ <%= render "govuk_publishing_components/components/image_card", first_document.merge({ large: true }) %> +
+
+ <% documents_without_first.in_groups_of(3, false) do |news| %>
<% news.each do |news_item| %> <% classes = %w[] %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index a89d23d1e..9bcbc644a 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -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 %>