Browse Source

refactor: erblinting

pull/1034/head
natdeanlewissoftwire 4 years ago
parent
commit
aed2dc7c85
  1. 6
      app/views/locations/name.html.erb

6
app/views/locations/name.html.erb

@ -3,7 +3,11 @@
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
text: "Back", text: "Back",
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location) : params[:referrer] == "details" ? scheme_location_path(@scheme, @location) : scheme_location_postcode_path(@scheme, @location), href: if params[:referrer] == "check_answers"
scheme_location_check_answers_path(@scheme, @location)
else
params[:referrer] == "details" ? scheme_location_path(@scheme, @location) : scheme_location_postcode_path(@scheme, @location)
end,
) %> ) %>
<% end %> <% end %>

Loading…
Cancel
Save