From da9d7e9b2dd6de444e766cc8a488176012e49828 Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Mon, 13 Nov 2023 13:44:16 +0000 Subject: [PATCH] Area page tweaks - Only show MP section and nav link on WMC pages (ie: not WMC23). - Fix messed up indentation on "This is a 2010 constituency" info box. --- hub/templates/hub/area.html | 58 +++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/hub/templates/hub/area.html b/hub/templates/hub/area.html index 80e2813a5..5242c0146 100644 --- a/hub/templates/hub/area.html +++ b/hub/templates/hub/area.html @@ -25,7 +25,9 @@

{{ area.name }}

- {% if area_type == "WMC" %} -
-
-
This is a 2010 constituency
-
-
-

At the next election, people from this constituency will be divided into {{ overlap_constituencies|length|apnumber }} constituenc{% if overlap_constituencies|length_is:1 %}y{% else %}ies{% endif %}:

- - - {% for overlap_constituency in overlap_constituencies %} - - - - - {% endfor %} - -
{{ overlap_constituency.area }}Covers approximately {{ overlap_constituency.pop_overlap }}% of this constituency's population, and {{ overlap_constituency.area_overlap }}% of this constituency's area.
-
-
- {% endif %} + {% if area_type == "WMC" %} +
+
+

This is a 2010 constituency

+
+
+

At the next election, people from this constituency will be divided into {{ overlap_constituencies|length|apnumber }} constituenc{% if overlap_constituencies|length_is:1 %}y{% else %}ies{% endif %}:

+ + + {% for overlap_constituency in overlap_constituencies %} + + + + + {% endfor %} + +
{{ overlap_constituency.area }}Covers approximately {{ overlap_constituency.pop_overlap }}% of this constituency’s population, and {{ overlap_constituency.area_overlap }}% of this constituency’s area.
+
+
+ {% endif %} + + {% if area_type == "WMC" %}

MP

- {% if area_type == "WMC23" %} -
-
-
This is a 2023 constituency
-
-
-

At the next election, an MP will be voted into this constituency, however until then, there is no MP.

-
-
- {% else %} - {% include 'hub/area/_mp_data.html' with mp_data=mp %} - {% endif %} + {% include 'hub/area/_mp_data.html' with mp_data=mp %}
+ {% endif %} {% if categories.opinion %}