]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/badge.html
Merging the experimental branch back to trunk.
[osqa.git] / forum / skins / default / templates / badge.html
1 {% extends "base_content.html" %}
2 <!-- template badge.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 {% load user_tags %}
6 {% load humanize %}
7 {% block title %}{% spaceless %}{{ badge.name }} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
8 {% block forejs %}
9        <script type="text/javascript">
10         $().ready(function(){
11             $("#nav_badges").attr('className',"on");
12         });
13          
14         </script>
15 {% endblock %}
16 {% block content %}
17 <div id="main-bar" class="headNormal">
18         {% trans "Badge" %}
19 </div>
20 <div id="main-body" style="width:100%;margin-bottom:20px">
21     <p>
22         <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a> {{ badge.description }}
23     </p>
24     <div>
25         {% if badge.awarded_count %}
26         <p style="float:left"><span class="count">{{ awards|length|intcomma }}</span>
27         <strong>{% trans "The users have been awarded with badges:" %}</strong></p>
28         {% endif %}
29     </div>
30     <div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
31         {% for award in awards %}
32         <p style="width:220px;float:left">{% user_signature award.user "badges" %}<span class="tag-number"> &#215; {{ award.count|intcomma }}</span></p>
33         {% endfor %}
34     </div>
35
36 </div>
37 {% endblock %}
38 <!-- end template badge.html -->