From a1e2923a0fa5465a56baa4e94318b2147919803c Mon Sep 17 00:00:00 2001 From: Di M Date: Wed, 7 Aug 2024 14:28:59 +0200 Subject: [PATCH] Added flourish charts to provincial legislature pages --- pmg/templates/provincial/detail.html | 25 ++++++++++++++++++++++ pmg/templates/provincial/western_cape.html | 5 +++++ 2 files changed, 30 insertions(+) diff --git a/pmg/templates/provincial/detail.html b/pmg/templates/provincial/detail.html index 3c76be923..2de580464 100644 --- a/pmg/templates/provincial/detail.html +++ b/pmg/templates/provincial/detail.html @@ -77,6 +77,31 @@
{{ member.party.name }}

Constituency Offices

You can find constituency offices for this legislature on People's Assembly. + +
+

Political Party Representation

+ {% if province.name == 'Mpumalanga' %} +
+ {% else if province.name == 'Northern Cape' %} +
+ {% else if province.name == 'Eastern Cape' %} +
+ {% else if province.name == 'KwaZulu-Natal' %} +
+ {% else if province.name == 'Gauteng' %} +
+ {% else if province.name == 'Limpopo' %} +
+ {% else if province.name == 'North West' %} +
+ {% else if province.name == 'Free State' %} +
+ {% endif %} + + +
+ +
diff --git a/pmg/templates/provincial/western_cape.html b/pmg/templates/provincial/western_cape.html index 1d4367cda..79441c9de 100644 --- a/pmg/templates/provincial/western_cape.html +++ b/pmg/templates/provincial/western_cape.html @@ -88,6 +88,11 @@
{{ call_for_comment.start_date|pretty_date }} - {% if call_for_ There are currently no open calls for comment {% endif %} + +
+

Political Party Representation

+
+