Send influence notifications to all players involved.
[matthijs/projects/xerxes.git] / templates / influences / email / influence_changed.html
index 29403015ed37152452f1fb9df548bf495520607f..f4c8af8671b797169bbad5bb08055d269fc0ec59 100644 (file)
@@ -9,15 +9,15 @@ Subject: {% blocktrans %}Influence "{{ influence }}" submitted.{% endblocktrans
 Subject: {% blocktrans %}Influence "{{ influence }}" was changed.{% endblocktrans %}
 {% endif%}
 \\
-{% if recipients.0.first_name %}
-{% blocktrans with recipients.0.first_name as name %}Hello {{ name }}{% endblocktrans %},
+{% if first_name %}
+{% blocktrans %}Hello {{ first_name }}{% endblocktrans %},
 {% else %}
 {% trans "L.S." %},
 {% endif %}
 \\
 {% filter wordwrap:72 %}
 {% blocktrans with influence.created|date:"j F Y" as creation_date %}
-You have submitted an influence on {{ creation_date }}.
+You are involved in this influence, submitted on {{ creation_date }}.
 {% endblocktrans %}
 {% if not created %}
 {% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}:
@@ -28,7 +28,9 @@ You have submitted an influence on {{ creation_date }}.
 {% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }}
 {% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }}
 {% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }}
+{% if influence.longterm %}
 {% filter ljust:20%}{% trans "Long term" %}:{%endfilter%}{{ influence.longterm|yesno|capfirst }}
+{% endif %}
 {% trans "Description" %}:
 {% filter wordwrap:72 %}
 {{ influence.description }}