From 8eff200bebff1b637e903266c2f84de13cb88fe8 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Wed, 16 Mar 2022 09:55:12 +0100 Subject: [PATCH] clean up section page --- .../templates/froide_govplan/detail.html | 2 +- .../templates/froide_govplan/section.html | 50 ++++++------------- 2 files changed, 17 insertions(+), 35 deletions(-) diff --git a/froide_govplan/templates/froide_govplan/detail.html b/froide_govplan/templates/froide_govplan/detail.html index 2ef614e..84b210d 100644 --- a/froide_govplan/templates/froide_govplan/detail.html +++ b/froide_govplan/templates/froide_govplan/detail.html @@ -1,6 +1,6 @@ {% extends "froide_govplan/base.html" %} -{% load i18n %} +{% load i18n %} {# TODO: i18n for all strings #} {% load markup %} {% load cms_tags %} {% load follow_tags %} diff --git a/froide_govplan/templates/froide_govplan/section.html b/froide_govplan/templates/froide_govplan/section.html index 7071d96..625ed67 100644 --- a/froide_govplan/templates/froide_govplan/section.html +++ b/froide_govplan/templates/froide_govplan/section.html @@ -16,51 +16,33 @@ {% block app_body %}
-
+
-
-
- {% comment %}
- {% with picture=object.image %} - - {% if ".svg" not in picture.url %} - {% thumbnail picture 280x0 crop=smart subject_location=picture.subject_location as thumb %} - - - {% thumbnail picture 200x0 crop=smart subject_location=picture.subject_location as thumb %} - - {% endif %} - {{ picture.default_alt_text }} - - {% endwith %} -
{% endcomment %} - -
+
+
+

{{ object.title }}

-

+

{% blocktranslate with section=object.title %} Here you can find all plans of the section "{{section}}", which the coalition constituted in their agreement. On the curresponding detail pages, you'll get more information, stay up to date with news or submit changes. {% endblocktranslate %}

- -
+ +
+ {% include "froide_govplan/plugins/progress.html" with object_list=plans %} +

+ umgesetzt + teilweise umgesetzt + verschoben + begonnen + nicht begonnen +

+