]> git.openstreetmap.org Git - osqa.git/commitdiff
Added extra check to avoid empty tags been sent in notifications.
authorjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 5 Dec 2012 23:19:10 +0000 (23:19 +0000)
committerjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 5 Dec 2012 23:19:10 +0000 (23:19 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1281 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/notifications/newquestion.html

index 1f48a380a7e3c76153de9708515be3132a4db8b2..3425c98b1c05ef4e05cdf3f7af3eeee7b5dab66d 100644 (file)
 
     {% htmlcontent notifications/base.html %}
         <p style="{{ p_style }}">
+            {% if tag_links != "" %}
             {% blocktrans %}
             {{ author_link }} has just posted a new question on {{ app_name }}, entitled
             {{ question_link }}
              and tagged "<em>{{ tag_links }}</em>". 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%}
         </p>
 
         <blockquote>