Skip to content

Commit

Permalink
Show finder link in specialist document view
Browse files Browse the repository at this point in the history
This updates the view to use the new `show_finder_link?` method from
SpecialistDocumentPresenter.
  • Loading branch information
leenagupte committed Jan 17, 2025
1 parent fa1dd42 commit b259d63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/specialist_document/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
} %>
</div>

<% if @content_item.finder_link %>
<% if @specialist_document_presenter.show_finder_link? %>
<div class="responsive-bottom-margin">
<%= @content_item.finder_link %>
<%= link_to("See all #{content_item.finder['title']}",
content_item.finder["base_path"],
class: "govuk-link") %>
</div>
<% end %>
<% end %>
Expand Down

0 comments on commit b259d63

Please sign in to comment.