Add the influence url to notification emails.
[matthijs/projects/xerxes.git] / templates / influences / email / influence_comment_added.html
index 7ebe70ca52c98e57656c92e3103283b714b14ca0..8390a3a5ac92d588bae633b916ffcd672d5ee8b4 100644 (file)
@@ -1,5 +1,6 @@
 {% load gapless %}{% gapless %}
 {% load i18n %}
+{% load uri %}
 {% autoescape off %}
 From: Xerxes (Evolution Events)<xerxes@evolution-events.nl>
 X-Mailer: Xerxes
@@ -18,5 +19,11 @@ Subject: {% blocktrans %}Comment added to influence "{{ influence }}".{% endbloc
 \\
 {{comment.comment}}
 {% endfilter %}
+\\
+\\
+{# This is ugly and hardcoded, but we don't have access to the request #}
+{# when notifying currently, so this should do for now. #}
+{% trans "View the influence and comments here:" %}
+http://xerxes.evolution-events.nl{{ influence.get_absolute_url }}
 {% endautoescape %}
 {% endgapless %}