Skip to content

Commit

Permalink
Remove additional Latest News link
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed May 9, 2024
1 parent b3a989c commit 1397181
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/helpers/latest_news_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def latest_news_items(organisation, get_first_image: false, count: 5)

first_image = get_news_item_header_image_from(search_results) if get_first_image

news_items = search_results["results"].each_with_index.map do |result, index|
search_results["results"].each_with_index.map do |result, index|
{
href: result["link"],
image_src: first_image && index.zero? ? first_image["url"] : nil,
Expand All @@ -22,13 +22,6 @@ def latest_news_items(organisation, get_first_image: false, count: 5)
brand: organisation.brand,
}
end

news_items + [
{
href: "/search/all?content_purpose_supergroup[]=news_and_communications&order=updated-newest&organisations[]=#{organisation.slug}",
text: t("organisations.latest_news"),
},
]
end

def get_news_item_header_image_from(results)
Expand Down

0 comments on commit 1397181

Please sign in to comment.