Send notifications individually.
[matthijs/projects/xerxes.git] / templates / influences / email / influence_changed.html
index 3ad66c02f069ddc2fdfe70b22db1c554cf0aaeb3..ee08310c79718fce18ed9eca42ac29a947f64798 100644 (file)
@@ -1,7 +1,7 @@
 {% load gapless %}{% gapless %}
 {% load i18n %}
 {% autoescape off %}
-From: Xerxes <xerxes@evolution-events.nl>
+From: Xerxes (Evolution Events)<xerxes@evolution-events.nl>
 X-Mailer: Xerxes
 {% if created %}
 Subject: {% blocktrans %}Influence "{{ influence }}" submitted.{% endblocktrans %}
@@ -9,8 +9,8 @@ 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 %}
@@ -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 }}