From 7e6d5d4222ee438772750f832aba0550d856a580 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 28 Mar 2022 12:00:27 +0200 Subject: [PATCH] adjust update author and content display --- .../templates/froide_govplan/plugins/updates.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/froide_govplan/templates/froide_govplan/plugins/updates.html b/froide_govplan/templates/froide_govplan/plugins/updates.html index 4b52c8e..55b9409 100644 --- a/froide_govplan/templates/froide_govplan/plugins/updates.html +++ b/froide_govplan/templates/froide_govplan/plugins/updates.html @@ -20,12 +20,18 @@
- {% if update.user %}von {{ update.user.get_full_name }}{% endif %}{% if update.organization %}, {{ update.organization.name }}{% 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 %} + {% if update.content or show_context %}
{% if show_context %}

{{ update.title }}

@@ -33,7 +39,7 @@ {% with update.content|markdown as content %} {% if show_context %} - {{ content|truncatewords_html:75 }} + {{ content|truncatewords_html:50 }} {% else %} {{ content }} {% endif %}