From b259d6330a6eb70595da2916cdd284e871fdc9be Mon Sep 17 00:00:00 2001 From: Leena Gupte Date: Fri, 17 Jan 2025 17:25:16 +0000 Subject: [PATCH] Show finder link in specialist document view This updates the view to use the new `show_finder_link?` method from SpecialistDocumentPresenter. --- app/views/specialist_document/show.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/specialist_document/show.html.erb b/app/views/specialist_document/show.html.erb index 2f868ded68..ffe90b995f 100644 --- a/app/views/specialist_document/show.html.erb +++ b/app/views/specialist_document/show.html.erb @@ -74,9 +74,11 @@ } %> - <% if @content_item.finder_link %> + <% if @specialist_document_presenter.show_finder_link? %>
- <%= @content_item.finder_link %> + <%= link_to("See all #{content_item.finder['title']}", + content_item.finder["base_path"], + class: "govuk-link") %>
<% end %> <% end %>