From 5732dd80f5870d77210a0b08f2b261d43cb626de Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Mon, 28 Feb 2022 12:53:22 +0100 Subject: [PATCH] Show more stuff on detail page --- .../templates/froide_govplan/detail.html | 43 ++++++++++++++++--- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/froide_govplan/templates/froide_govplan/detail.html b/froide_govplan/templates/froide_govplan/detail.html index 8641afc..30798fb 100644 --- a/froide_govplan/templates/froide_govplan/detail.html +++ b/froide_govplan/templates/froide_govplan/detail.html @@ -22,15 +22,48 @@ {% include "fds_blog/includes/_picture.html" with picture=object.image %} {% endif %} -

Status: {{ object.get_status_display }}

- {% if object.rating %} -

Rating: {{ object.get_rating_display }}

- {% endif %} +
+
Status
+
{{ object.get_status_display }}
+ {% if object.rating %} +
Rating
+
{{ object.get_rating_display }}
+ {% endif %} + {% if object.measure %} +
Art der Umsetzung
+
{{ object.measure }}
+ {% endif %} + {% if object.due_date %} +
Frist
+
{{ object.due_date|date:"SHORT_DATE_FORMAT" }}
+ {% endif %} +
+ +
+ {{ object.quote | safe }} +
{{ object.description | safe }} + {% with refs=object.get_reference_links %} + {% if refs %} +

+ {% if refs|length > 1 %} + Quellen: + {% else %} + Quelle: + {% endif %} + {% for ref in refs %} + + {{ forloop.counter }} + + {% endfor %} +

+ {% endif %} + {% endwith %} +

- Quelle + {% for cat in object.categories.all %}{{ cat.name }}{% endfor %}

{% if object.responsible_publicbody %}