]> git.openstreetmap.org Git - osqa.git/commitdiff
show the badges count on the user profile page only if the count is not equal to 1
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 4 May 2011 19:55:46 +0000 (19:55 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 4 May 2011 19:55:46 +0000 (19:55 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1022 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/users/stats.html

index 8fb67f921b68a7d7819c922a960790bee65350fe..fe34b19f3010f415629ef5ca8d8eb72e366a7b0f 100644 (file)
                 <tr style="vertical-align: top;">
                     <td style="line-height:35px; padding-right: 20px;">
                         {% for award, count in awards %}
-                            <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}</a><span class="tag-number"> &#215; {{ count|intcomma }}</span><br/>
+                            {% spaceless %}
+                            <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal">
+                                <span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}
+                            </a>
+                            {% ifnotequal count 1 %}
+                                <span class="tag-number"> &#215; {{ count|intcomma }}</span>
+                            {% endifnotequal %}<br/>
                             {% if forloop.counter|divisibleby:"6" %}
                                 </td>
                                 <td width="180" style="line-height:35px">
                             {% endif %}
+                            {% endspaceless %}
                         {% endfor %}
                     </td>
                 </tr>