Skip to content

Commit

Permalink
Only show titles if there's more than 1 section
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldfallen committed Nov 23, 2017
1 parent 25656b9 commit 224b3ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/look-and-feel/layouts/check_your_answers.html
Original file line number Diff line number Diff line change
@@ -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 %}

Expand All @@ -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 %}

Expand Down

0 comments on commit 224b3ee

Please sign in to comment.