From: Attila-Mihaly Balazs Date: Mon, 24 Mar 2014 11:04:15 +0000 (+0200) Subject: Merge commit '9bea91a' into merge_small_prs X-Git-Tag: live~25^2~2 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/c635cbc6c691a5b9baac0eee2e2135c1ededd4b6?hp=9bea91a74f63f694e5497f38998730e6f8ada1c5 Merge commit '9bea91a' into merge_small_prs --- diff --git a/forum/actions/user.py b/forum/actions/user.py index 5a6aba5..a9ec71a 100644 --- a/forum/actions/user.py +++ b/forum/actions/user.py @@ -1,6 +1,7 @@ from django.utils.translation import ungettext, ugettext as _ from django.core.urlresolvers import reverse from django.db.models import F +from django.contrib import messages from forum.models.action import ActionProxy from forum.models import Award, Badge, ValidationHash, User from forum import settings, REQUEST_HOLDER @@ -252,4 +253,4 @@ class SuspendAction(ActionProxy): return _("%(user)s suspended %(users)s %(suspension)s: %(msg)s") % { 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), 'users': self.affected_links(viewer), 'suspension': suspension, 'msg': self.extra.get('publicmsg', _('Bad behaviour')) - } \ No newline at end of file + } diff --git a/forum/skins/default/templates/auth/mail_validation.html b/forum/skins/default/templates/auth/mail_validation.html index 82029d6..7e6a2f3 100644 --- a/forum/skins/default/templates/auth/mail_validation.html +++ b/forum/skins/default/templates/auth/mail_validation.html @@ -13,17 +13,17 @@ {% htmlcontent notifications/base.html %}

{% trans "Please use the following link to help us verify your email address:" %}

-

{% trans "Validate my email address" %}

+

{% trans "Validate my email address" %}

{% trans "If the above link is not clickable, copy and paste this url into your web browser's address bar:" %}

-

{% fullurl auth_validate_email user=recipient.id,code=validation_code %}

+

{% fullurl "auth_validate_email" user=recipient.id code=validation_code %}

{% endhtmlcontent %} {% textcontent notifications/base_text.html %} {% trans "Copy and paste this url into your web browser's address bar to help us verify your email address:" %} -{% fullurl auth_validate_email user=recipient.id,code=validation_code %} +{% fullurl "auth_validate_email" user=recipient.id code=validation_code %} {% endtextcontent %} {% endemail %} diff --git a/forum/skins/default/templates/auth/temp_login_email.html b/forum/skins/default/templates/auth/temp_login_email.html index 32ade89..3c5707f 100644 --- a/forum/skins/default/templates/auth/temp_login_email.html +++ b/forum/skins/default/templates/auth/temp_login_email.html @@ -14,17 +14,17 @@

{% blocktrans %}The following link grants you a one time access to your account at {{ app_name }}.{% endblocktrans %}

-

{% trans "Go to your account" %}

+

{% trans "Go to your account" %}

{% trans "If the above link is not clickable, copy and paste this url into your web browser's address bar:" %}

-

{% fullurl auth_tempsignin user=recipient.id,code=temp_login_code %}

+

{% fullurl "auth_tempsignin" user=recipient.id code=temp_login_code %}

{% endhtmlcontent %} {% textcontent notifications/base_text.html %} {% blocktrans %}The following url grants you a one time access to your account at {{ app_name }}.{% endblocktrans %} -{% fullurl auth_tempsignin user=recipient.id,code=temp_login_code %} +{% fullurl "auth_tempsignin" user=recipient.id code=temp_login_code %} {% endtextcontent %} {% endemail %}