Skip to content

Commit

Permalink
remove link to deleted lieutenants
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfall committed Dec 8, 2023
1 parent cb4165c commit c0eeb5c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/views/admin/lieutenants/_list.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ div role="region" aria-labelledby="table-list-lieutenancy-office-caption" tabind
- else
- LieutenantDecorator.decorate_collection(resources).each do |lieutenant|
tr.govuk-table__row
th.govuk-table__header scope="row"
= link_to lieutenant.full_name,
edit_admin_lieutenant_path(lieutenant),
class: "govuk-link",
aria: { label: "edit-#{ lieutenant.first_name.downcase }-#{ lieutenant.last_name.downcase }" }
- if action_name == "deleted"
td.govuk-table__cell scope="row"
= lieutenant.full_name
- else
th.govuk-table__header scope="row"
= link_to lieutenant.full_name,
edit_admin_lieutenant_path(lieutenant),
class: "govuk-link",
aria: { label: "edit-#{ lieutenant.first_name.downcase }-#{ lieutenant.last_name.downcase }" }
td.govuk-table__cell
= lieutenant.ceremonial_county.name
td.govuk-table__cell
Expand Down

0 comments on commit c0eeb5c

Please sign in to comment.