]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/newquestion.html
Added extra check to avoid empty tags been sent in notifications.
[osqa.git] / 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>