From 09f7bd2c2824c937092aba8dd1030de5507b0d44 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 8 Nov 2022 16:12:40 +0000 Subject: [PATCH] lint --- app/views/locations/show.html.erb | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index 64f87d917..2060a6e0f 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -8,20 +8,19 @@ ) %> <% end %> -<%= render partial: "organisations/headings", locals: { main: @location.postcode, sub: @location.name } %> +<%= render partial: "organisations/headings", locals: { main: @location.postcode, sub: @location.name } %>
-
- <%= govuk_summary_list do |summary_list| %> - <% @location.display_attributes.each do |attr| %> - <%= summary_list.row do |row| %> - <% row.key { attr[:name] } %> - <% row.value { attr[:name].eql?("Status") ? status_tag(attr[:value]) : details_html(attr) } %> - <% row.action(text: "Change", href: location_edit_name_path(location_id: @location.id, id: @scheme.id)) if attr[:edit] %> +
+ <%= govuk_summary_list do |summary_list| %> + <% @location.display_attributes.each do |attr| %> + <%= summary_list.row do |row| %> + <% row.key { attr[:name] } %> + <% row.value { attr[:name].eql?("Status") ? status_tag(attr[:value]) : details_html(attr) } %> + <% row.action(text: "Change", href: location_edit_name_path(location_id: @location.id, id: @scheme.id)) if attr[:edit] %> + <% end %> + <% end %> <% end %> - <% end %> - <% end %> -
<% if !Rails.env.production? %>