From: javyer Date: Wed, 5 Dec 2012 23:19:10 +0000 (+0000) Subject: Added extra check to avoid empty tags been sent in notifications. X-Git-Tag: live~36 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/e5cc68e7511d5c57b88a7acab4119f3cef55b1ce Added extra check to avoid empty tags been sent in notifications. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1281 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/templates/notifications/newquestion.html b/forum/skins/default/templates/notifications/newquestion.html index 1f48a38..3425c98 100644 --- a/forum/skins/default/templates/notifications/newquestion.html +++ b/forum/skins/default/templates/notifications/newquestion.html @@ -19,11 +19,18 @@ {% htmlcontent notifications/base.html %}

+ {% if tag_links != "" %} {% blocktrans %} {{ author_link }} has just posted a new question on {{ app_name }}, entitled {{ question_link }} and tagged "{{ tag_links }}". Here's what it says: {% endblocktrans %} + {%else%} + {% blocktrans %} + {{ author_link }} has just posted a new question on {{ app_name }}, entitled + {{ question_link }}. Here's what it says: + {% endblocktrans %} + {%endif%}