From 224b3eec1c580f1c52672ffa31bf440529480381 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Thu, 2 Nov 2017 10:18:06 +0000 Subject: [PATCH] Only show titles if there's more than 1 section --- templates/look-and-feel/layouts/check_your_answers.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/look-and-feel/layouts/check_your_answers.html b/templates/look-and-feel/layouts/check_your_answers.html index d2eec3b..b8e5529 100644 --- a/templates/look-and-feel/layouts/check_your_answers.html +++ b/templates/look-and-feel/layouts/check_your_answers.html @@ -1,6 +1,7 @@ {% extends "look-and-feel/layouts/two_thirds.html" %} {% from "look-and-feel/components/header.njk" import header %} {% from "look-and-feel/components/check-your-answers.njk" import answer %} +{% from "look-and-feel/components/phase_banner.njk" import phaseBanner %} {% block page_title %}{{ title | default('Check your answers') }}{% endblock %} @@ -21,7 +22,7 @@ {% for section in _sections %} {% if section.atLeast1Completed %} - {% if section.title %} + {% if section.title and _sections|length > 1 %} {{ header(section.title, size='medium') }} {% endif %}