From 92a04d94ff58bcff3729b60d218dad997b0d61a1 Mon Sep 17 00:00:00 2001
From: Struan Donald
Date: Wed, 18 Sep 2024 12:05:07 +0200
Subject: [PATCH] display recent wrans for an MP on the area page
---
hub/templates/hub/area.html | 36 ++++++++++++++++++++++++++++++++++++
hub/views/area.py | 3 +++
2 files changed, 39 insertions(+)
diff --git a/hub/templates/hub/area.html b/hub/templates/hub/area.html
index 5f5b4080a..b9a6d25a8 100644
--- a/hub/templates/hub/area.html
+++ b/hub/templates/hub/area.html
@@ -313,6 +313,42 @@ Votes and EDMs
+
+ {% if mp.wrans %}
+
+
+
+
+
+
+ Department |
+ Topic |
+ Date |
+
+
+
+ {% for wran in mp.wrans %}
+
+ {{ wran.department }} |
+ {{ wran.area }} |
+ {{ wran.date }} |
+
+ {% endfor %}
+
+
+
+
+
+ {% endif %}
{% endif %}