]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/digest.html
Jira-485 Bugfix, sort order should not be hardcoded in digest.html
[osqa.git] / forum / skins / default / templates / notifications / digest.html
index 95ce064a5a1d691b14e282d128d6e3a8fe462345..5c5737514046a49295a2d8a32262412bd825eb02 100644 (file)
@@ -1,7 +1,7 @@
 {% load i18n extra_tags email_tags %}
 
 {% declare %}
-    prefix = settings.EMAIL_SUBJECT_PREFIX
+    prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX)
     app_name = settings.APP_SHORT_NAME
     app_url = settings.APP_URL
 
@@ -37,7 +37,7 @@
         {% if new_question_count %}
 
         {% declare %}
-            new_questions_link = html.hyperlink(app_url + reverse('questions') + '?sort=latest', _('new questions'), style=a_style)
+            new_questions_link = html.hyperlink(app_url + reverse('questions') + '?sort=' + _('latest'), _('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)
         {% enddeclare %}
@@ -95,4 +95,4 @@
     {% textcontent notifications/base_text.html %}
 
     {% endtextcontent %}
-{% endemail %}
\ No newline at end of file
+{% endemail %}