From 5772fadb907fb02c67b74e64c121e968526cceb2 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 4 May 2011 19:55:46 +0000 Subject: [PATCH] show the badges count on the user profile page only if the count is not equal to 1 git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1022 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/templates/users/stats.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/forum/skins/default/templates/users/stats.html b/forum/skins/default/templates/users/stats.html index 8fb67f9..fe34b19 100644 --- a/forum/skins/default/templates/users/stats.html +++ b/forum/skins/default/templates/users/stats.html @@ -131,11 +131,18 @@ {% for award, count in awards %} -  {{ award.name }} × {{ count|intcomma }}
+ {% spaceless %} + +  {{ award.name }} + + {% ifnotequal count 1 %} + × {{ count|intcomma }} + {% endifnotequal %}
{% if forloop.counter|divisibleby:"6" %} {% endif %} + {% endspaceless %} {% endfor %} -- 2.39.5