From e2228972a5a68f6ca6877893d2dbd389a333fe03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 16 May 2016 18:11:28 +0200 Subject: [PATCH] mail: fix mail summary to not include mandatory avis twice --- welco/sources/mail/templates/welco/mail_summary.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/welco/sources/mail/templates/welco/mail_summary.html b/welco/sources/mail/templates/welco/mail_summary.html index 5b1cd79..90ce703 100644 --- a/welco/sources/mail/templates/welco/mail_summary.html +++ b/welco/sources/mail/templates/welco/mail_summary.html @@ -48,12 +48,11 @@ {% endif %} -{% if object.get_mandatory_avis|length %} -
-{% trans "Mandatory Avis" %} +{% if object.get_avis|length %} +
+{% trans "Avis" %}
    - {% for avis in object.get_mandatory_avis %} + {% for avis in object.get_avis %}
  • {{avis.role_name}}: {% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}
  • {% endfor %}