Browse Source

Lint ERB templates

pull/498/head
Paul Robert Lloyd 3 years ago
parent
commit
6e3ee6368a
  1. 2
      app/views/form/check_answers.html.erb
  2. 6
      app/views/form/review.html.erb
  3. 2
      app/views/layouts/application.html.erb

2
app/views/form/check_answers.html.erb

@ -17,7 +17,7 @@
<% end %>
<%= display_answered_questions_summary(subsection, @case_log) %>
<%= render partial: 'form/check_answers_summary_list', locals: {
<%= render partial: "form/check_answers_summary_list", locals: {
subsection:,
case_log: @case_log,
} %>

6
app/views/form/review.html.erb

@ -1,8 +1,8 @@
<% content_for :title, "Review lettings log" %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
"Logs" => "/logs",
"Log #{@case_log.id.to_s}" => "/logs/" + @case_log.id.to_s,
"Review lettings log" => ""
"Log #{@case_log.id}" => "/logs/#{@case_log.id}",
"Review lettings log" => "",
}) %>
<div class="govuk-grid-row">
@ -21,7 +21,7 @@
<h3 class="x-govuk-summary-card__title"><%= subsection.label %></h3>
</div>
<div class="x-govuk-summary-card__body">
<%= render partial: 'form/check_answers_summary_list', locals: {
<%= render partial: "form/check_answers_summary_list", locals: {
subsection:,
case_log: @case_log,
} %>

2
app/views/layouts/application.html.erb

@ -45,7 +45,7 @@
<%= govuk_header(
classes: "app-header",
service_url: current_user.nil? ? "/" : "/logs",
navigation_classes: "govuk-header__navigation--end"
navigation_classes: "govuk-header__navigation--end",
) do |component|
component.product_name(name: t("service_name"))
if current_user.nil?

Loading…
Cancel
Save