From: Matthijs Kooijman Date: Tue, 10 Feb 2009 18:01:24 +0000 (+0100) Subject: Merge branch 'production' X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=dad2574dc3f0cc1d114a85ac44ef440b5baeeaa8;hp=d8acd479311086f3372ed61688a7468356198a04 Merge branch 'production' * production: Don't load the uri template tag library. Add the influence url to notification emails. Make the is_public field unchecked by default. --- diff --git a/influences/forms.py b/influences/forms.py index e1a6db3..db825cc 100644 --- a/influences/forms.py +++ b/influences/forms.py @@ -1,4 +1,4 @@ -from django.forms.fields import CharField +from django.forms.fields import CharField, BooleanField from django.forms.widgets import Textarea from django.forms.models import ModelMultipleChoiceField from threadedcomments.forms import ThreadedCommentForm @@ -25,6 +25,7 @@ class InfluenceCommentForm(ThreadedCommentForm): class AdminInfluenceCommentForm(ThreadedCommentForm): comment = CharField(widget=Textarea(attrs={'cols' : 80})) + is_public = BooleanField(required=False, initial=False) def __init__(self, *args, **kwargs): super(AdminInfluenceCommentForm, self).__init__(*args, **kwargs) 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 ac59c93..982bf1e 100644 --- a/templates/influences/email/influence_changed.html +++ b/templates/influences/email/influence_changed.html @@ -44,5 +44,9 @@ You are involved in this influence, submitted 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 656f163..d52cce2 100644 --- a/templates/influences/email/influence_comment_added.html +++ b/templates/influences/email/influence_comment_added.html @@ -18,5 +18,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 %}