X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=templates%2Finfluences%2Femail%2Finfluence_comment_added.html;h=d52cce2f1908b4095fc3389c071029dfa788622c;hb=dad2574dc3f0cc1d114a85ac44ef440b5baeeaa8;hp=7ebe70ca52c98e57656c92e3103283b714b14ca0;hpb=6cbe123d251d1ed25f09ad13d86bf1af65012430;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/templates/influences/email/influence_comment_added.html b/templates/influences/email/influence_comment_added.html index 7ebe70c..d52cce2 100644 --- a/templates/influences/email/influence_comment_added.html +++ b/templates/influences/email/influence_comment_added.html @@ -5,18 +5,24 @@ From: Xerxes (Evolution Events) X-Mailer: Xerxes Subject: {% blocktrans %}Comment added to influence "{{ influence }}".{% endblocktrans %} \\ -{% 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 %} -{{commenter}} has just commented the following on your influence: +{{commenter}} has just commented the following on an influence you are involved in: {% endblocktrans %} \\ {{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 %}