From e5cc68e7511d5c57b88a7acab4119f3cef55b1ce Mon Sep 17 00:00:00 2001 From: javyer Date: Wed, 5 Dec 2012 23:19:10 +0000 Subject: [PATCH] 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 --- .../skins/default/templates/notifications/newquestion.html | 7 +++++++ 1 file changed, 7 insertions(+) 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%}

-- 2.39.5