]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/badge.html
should now be working for chrome/safari/firefox. still need to fix markdown display...
[osqa.git] / forum / skins / default / templates / badge.html
index af6aa2a2f1a5c42523b6788d0edce0f6000fcaed..341f2393b97ba56613244fe86414c9eb2f0a68a7 100644 (file)
@@ -2,6 +2,7 @@
 <!-- template badge.html -->
 {% load i18n %}
 {% load extra_tags %}
+{% load user_tags %}
 {% load humanize %}
 {% block title %}{% spaceless %}{{ badge.name }} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
 {% block forejs %}
     </p>
     <div>
         {% if badge.awarded_count %}
-        <p style="float:left"><span class="count">{{ awards|length|intcomma }}</span>
+        <p style="float:left"><span class="count">{{ award_count|intcomma }}</span>
         <strong>{% trans "The users have been awarded with badges:" %}</strong></p>
         {% endif %}
     </div>
     <div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
         {% for award in awards %}
-        <p style="width:180px;float:left"><a href="{% url users %}{{ award.id }}/{{ award.name }}">{{ award.name }}</a> {% get_score_badge_by_details award.rep award.gold award.silver award.bronze %}</p>
+        <p style="width:220px;float:left">{% user_signature award.user "badges" %}<span class="tag-number"> &#215; {{ award.count|intcomma }}</span></p>
         {% endfor %}
     </div>