X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2cc473d49594f6d9856e5ec3ea18818230fd5eab..6ebde88b50458c1ba0d81d42ab3bc59e131537b1:/forum/skins/default/templates/notifications/digest.html diff --git a/forum/skins/default/templates/notifications/digest.html b/forum/skins/default/templates/notifications/digest.html index e986d4b..91757b8 100644 --- a/forum/skins/default/templates/notifications/digest.html +++ b/forum/skins/default/templates/notifications/digest.html @@ -1,11 +1,11 @@ {% load i18n extra_tags email_tags %} {% declare %} - prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX) - app_name = settings.APP_SHORT_NAME + prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX)) + app_name = smart_unicode(settings.APP_SHORT_NAME) app_url = settings.APP_URL - new_member_links = html.mark_safe(", ".join([html.objlink(u, style=settings.EMAIL_ANCHOR_STYLE) for u in new_members])) + new_member_links = html.mark_safe(smart_unicode(", ".join([html.objlink(u, style=settings.EMAIL_ANCHOR_STYLE) for u in new_members]))) new_question_count = digest.count {% enddeclare %} @@ -15,9 +15,10 @@ {% htmlcontent notifications/base.html %} {% declare %} - new_questions_link = html.hyperlink(app_url + reverse('questions') + '?sort=' + _('latest'), _('new questions'), style=a_style) + new_questions_link = html.hyperlink(smart_unicode(app_url) + reverse('questions') + '?sort=' + _('latest'), smart_unicode(_('new questions')), style=a_style) user_questions = digest.get_for_user(recipient) - subscriptions_link = html.hyperlink(app_url + recipient.get_subscribed_url(), _('subscriptions'), style=a_style) + subscribed_url = '%s%s' % (app_url, recipient.get_subscribed_url()) + subscriptions_link = html.hyperlink(subscribed_url, _('subscriptions'), style=a_style) {% enddeclare %}
@@ -92,7 +93,7 @@ {% if recipient.is_superuser %} {% declare %} - flagged_url = html.hyperlink(app_url + reverse('admin_flagged_posts'), str(flagged_count) + ' ' + _('posts'), style=a_style) + flagged_url = html.hyperlink(smart_unicode(app_url + reverse('admin_flagged_posts')), smart_unicode(str(flagged_count) + ' ' + _('posts')), style=a_style) {% enddeclare %}
{% blocktrans %}