diff --git a/froide_govplan/templates/froide_govplan/detail.html b/froide_govplan/templates/froide_govplan/detail.html index b42bb59..c9ff9fe 100644 --- a/froide_govplan/templates/froide_govplan/detail.html +++ b/froide_govplan/templates/froide_govplan/detail.html @@ -66,7 +66,7 @@ {% if object.responsible_publicbody %} {% if not object.has_recent_foirequest and government.active %}

- Anfrage zum Vorhaben stellen

diff --git a/froide_govplan/templates/froide_govplan/plugins/updates.html b/froide_govplan/templates/froide_govplan/plugins/updates.html index 622f3d0..fe9fc73 100644 --- a/froide_govplan/templates/froide_govplan/plugins/updates.html +++ b/froide_govplan/templates/froide_govplan/plugins/updates.html @@ -1,5 +1,7 @@ {% load markup %} +{% if request.path == '/' %} +

Aktuelles

@@ -162,4 +164,86 @@ Weiter -

\ No newline at end of file + + +{% else %} + +
+

Aktuelles

+

+ Hier finden Sie aktuelle Artikel und Links zu Blogs zu den Fortschritten des Vorhabens. +

+
+ +
+ {% for update in updates %} +
+
+ +
+ {% if show_context %} + + {{ update.plan.get_section }} + + {% endif %} + + {% if show_context %} +

{{ update.plan }}

+ {% else %} +

{{ update.title }}

+ {% endif %} + +
+ + + {% if update.user or update.organization %} + + von {{ update.user.get_full_name }}{% if update.user and update.organization %},{% endif %} + {{ update.organization.name }} + + {% endif %} +
+ +
+
+
+ + {% if update.content or show_context %} +
+ {% if show_context %} +

{{ update.title }}

+ {% endif %} + + {% with update.content|markdown as content %} + {% if show_context %} + {{ content|truncatewords_html:50 }} + {% else %} + {{ content }} + {% endif %} + {% endwith %} +
+ {% endif %} + + {% if update.url or update.foirequest or show_context %} +
+ {% if show_context %} + → zum Vorhaben + {% else %} + {% if update.url %} + → mehr auf {{ update.get_url_domain }} lesen… + {% endif %} + + {% if update.foirequest %} + → zur Anfrage + {% endif %} + {% endif %} +
+ {% endif %} + +
+
+
+ {% endfor %} +
+ +{% endif %} \ No newline at end of file