Skip to content

Commit

Permalink
Removes link where title is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Feb 21, 2024
1 parent 0f29ccc commit 5e2dec7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/content_items/manuals/_updates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
<div class="govuk-!-margin-top-3">
<% change_notes.each do |change_note_entry| %>
<% change_note = change_note_entry.flatten.last %>
<p class="govuk-body">
<%= link_to change_note["title"], change_note["base_path"], class: "govuk-link" %>
</p>
<% if change_note["title"].present? %>
<p class="govuk-body">
<%= link_to change_note["title"], change_note["base_path"], class: "govuk-link" %>
</p>
<% end %>
<%= simple_format(change_note["change_note"], class: "govuk-body") %>
<% end %>
</div>
Expand Down

0 comments on commit 5e2dec7

Please sign in to comment.