Skip to content

Commit

Permalink
Merge pull request #8665 from alphagov/refactor-cancel-link-helper
Browse files Browse the repository at this point in the history
Removed unnecessary cancel routes helper
  • Loading branch information
ryanb-gds authored Dec 21, 2023
2 parents cc2fbaa + dda9d2b commit 1fc644c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 27 deletions.
10 changes: 0 additions & 10 deletions app/helpers/admin/cancel_routes_helper.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
destructive: true,
} %>

<%= link_to("Cancel", admin_cancel_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
<%= link_to("Cancel", admin_edition_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
</div>
<% end %>
</section>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/edition_translations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
text: "Save",
} %>

<%= link_to("Cancel", admin_cancel_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
<%= link_to("Cancel", admin_edition_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
</div>
<% end %>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
},
} %>

<%= link_to "Cancel", admin_cancel_path(edition), class: "govuk-link govuk-link--no-visited-state" %>
<%= link_to "Cancel", edition.new_record? ? admin_editions_path : admin_edition_path(edition), class: "govuk-link govuk-link--no-visited-state" %>
</div>
2 changes: 1 addition & 1 deletion app/views/admin/editorial_remarks/confirm_destroy.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
destructive: true,
} %>

<%= link_to("Cancel", admin_cancel_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
<%= link_to("Cancel", admin_edition_path(@edition), class: "govuk-link govuk-link--no-visited-state") %>
</div>
<% end %>
</section>
Expand Down
13 changes: 0 additions & 13 deletions test/unit/app/helpers/admin/cancel_routes_helper_test.rb

This file was deleted.

0 comments on commit 1fc644c

Please sign in to comment.