]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/badges.html
Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene.
[osqa.git] / forum / skins / default / templates / badges.html
1 {% extends "base.html" %}
2 <!-- template badges.html -->
3 {% load extra_tags %}
4 {% load humanize %}
5 {% load i18n %}
6 {% block title %}{% spaceless %}{% trans "Badges summary" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
8        <script type="text/javascript">
9         $().ready(function(){
10             $("#nav_badges").attr('className',"on");
11         });
12          
13         </script>
14 {% endblock %}
15 {% block content %}
16 <div class="headlineA">
17         <span class="headMedals">{% trans "Badges" %}</span>
18 </div>
19 <div class="badges" id="main-body" style="width:100%">
20     <p>
21         {% trans "Community gives you awards for your questions, answers and votes." %}<br/>
22         {% blocktrans %}Below is the list of available badges and number 
23     of times each type of badge has been awarded. Give us feedback at {{feedback_faq_url}}.
24     {% endblocktrans %}
25     </p>
26     <div id="medalList">
27         {% for badge in badges %}
28         <div style="clear:both;line-height:30px">
29             <div style="float:left;min-width:30px;text-align:right;height:30px">
30             {% for a in mybadges %}
31                 {% ifequal a.badge_id badge.id %}
32                  <span style="font-size:175%; padding-right:5px; color:#5B9058;">&#10004;</span>
33                 {% endifequal %}
34             {% endfor %}
35             </div>
36             <div style="float:left;width:230px;">
37                 <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><strong> &#215; {{ badge.awarded_count|intcomma }}</strong>
38             </div>
39             <p style="float:left;margin-top:8px;">
40                 {{ badge.description }}
41             </p>
42         </div>
43         {% endfor %}
44     </div>
45 </div>
46 {% endblock %}
47 {% block sidebar %}
48
49 <div class="boxC">
50     <h3>{% trans "Community badges" %}</h3>
51     <div class="body">
52     <p>
53         <a style="cursor:default;" title="gold badge: the highest honor and is very rare" class="medal"><span class="badge1">&#9679;</span>&nbsp;{% trans "gold" %}</a>
54     </p>
55     <p>
56         {% trans "gold badge description" %}
57     </p>
58     <p>
59         <a style="cursor:default;" 
60                         title="silver badge: occasionally awarded for the very high quality contributions" 
61                         class="medal"><span class="badge2">&#9679;</span>&nbsp;{% trans "silver" %}</a>
62     </p>
63     <p>
64         {% trans "silver badge description" %}
65     </p>
66     <p>
67         <a style="cursor:default;" title="{% trans "bronze badge: often given as a special honor" %}" class="medal">
68                 <span class="badge3">&#9679;</span>&nbsp;{% trans "bronze" %}</a>
69     </p>
70     <p>
71         {% trans "bronze badge description" %}
72     </p>
73     </div>
74 </div>
75 {% endblock %}
76 <!-- end template badges.html -->