We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83877f8 commit a114aeaCopy full SHA for a114aea
1 file changed
app/helpers/application_helper.rb
@@ -1,6 +1,7 @@
1
module ApplicationHelper
2
def edition_edit_link(edition)
3
- link_to((edition.draft? ? "edit" : "view details"), edit_admin_edition_path(edition), class: "govuk-link")
+ link_content = edition.draft? ? "edit" : "view details"
4
+ link_to(link_content, edit_admin_edition_path(edition), class: "govuk-link")
5
end
6
7
def preview_edition_link(edition, short, options = {})
0 commit comments