From: Matthijs Kooijman Date: Wed, 4 Feb 2009 10:15:36 +0000 (+0100) Subject: Add the influence url to notification emails. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=1a2870e797b6c904ebac7ce8a563eff5aa582143;p=matthijs%2Fprojects%2Fxerxes.git Add the influence url to notification emails. --- diff --git a/locale/nl/LC_MESSAGES/django.po b/locale/nl/LC_MESSAGES/django.po index ed0d963..c8258ee 100644 --- a/locale/nl/LC_MESSAGES/django.po +++ b/locale/nl/LC_MESSAGES/django.po @@ -499,6 +499,11 @@ msgstr "" msgid "The influence has been modified. The current status is" msgstr "De invloed is veranderd. De status is nu" +#: templates/influences/email/influence_changed.html:46 +#: templates/influences/email/influence_comment_added.html:26 +msgid "View the influence and comments here:" +msgstr "Bekijk de invloed en het commentaar hier:" + #: templates/influences/email/influence_comment_added.html:6 #, python-format msgid "Comment added to influence \"%(influence)s\"." diff --git a/templates/influences/email/influence_changed.html b/templates/influences/email/influence_changed.html index 3c56337..197aef5 100644 --- a/templates/influences/email/influence_changed.html +++ b/templates/influences/email/influence_changed.html @@ -41,5 +41,9 @@ You have submitted an influence on {{ creation_date }}. {{ influence.result }} {% endfilter %} {% endif %} +\\ +\\ +{% trans "View the influence and comments here:" %} +http://xerxes.evolution-events.nl{{ influence.get_absolute_url }} {% endautoescape %} {% endgapless %} diff --git a/templates/influences/email/influence_comment_added.html b/templates/influences/email/influence_comment_added.html index 7ebe70c..8390a3a 100644 --- a/templates/influences/email/influence_comment_added.html +++ b/templates/influences/email/influence_comment_added.html @@ -1,5 +1,6 @@ {% load gapless %}{% gapless %} {% load i18n %} +{% load uri %} {% autoescape off %} From: Xerxes (Evolution Events) 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 %}