From 7beff9cab70d20c64834ee5e1112d66b9fcb75b7 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 7 Apr 2015 14:18:05 +0200 Subject: [PATCH] Fixing custom attributes notifications on name change --- .../emails/includes/fields_diff-html.jinja | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja index 667b66e7..88b56f41 100644 --- a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja +++ b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja @@ -184,21 +184,23 @@ {% endif %} {% if values.changed %} {% for attr in values['changed'] %} - - -

{{ attr.name }}

- - - {{ _("from") }}
- {{ attr.changes.value.0|linebreaksbr }} - - - - - {{ _("to") }}
- {{ attr.changes.value.1|linebreaksbr }} - - + {% if attr.changes.value%} + + +

{{ attr.name }}

+ + + {{ _("from") }}
+ {{ attr.changes.value.0|linebreaksbr }} + + + + + {{ _("to") }}
+ {{ attr.changes.value.1|linebreaksbr }} + + + {% endif %} {% endfor %} {% endif %} {% if values.deleted %}