Skip to content

Commit f298068

Browse files
committed
only show one imd2019
1 parent 6ed841b commit f298068

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

findthatpostcode/templates/postcode.html.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
{% endif %}
113113

114114
{% for a in result.relationships.areas if a.attributes.stats and a.attributes.stats.imd2019 %}
115+
{% if loop.first %}
115116
{% set rank = a.attributes.stats.imd2019.imd_rank %}
116117
{% set total = other_codes.imd[result.attributes.ctry] %}
117118
{% call info_block("Index of multiple deprivation (2019)") %}
@@ -125,6 +126,7 @@
125126
{{ result.attributes.ctry.name }} were more deprived than this one.</p>
126127
{% endif %}
127128
{% endcall %}
129+
{% endif %}
128130
{% endfor %}
129131
</div>
130132

0 commit comments

Comments
 (0)