]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/badges.html
Improving the canned comments feature, now we can use Django style template syntax...
[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 content %}
8 <div class="headlineA">
9         <span class="headMedals">{% trans "Badges" %}</span>
10 </div>
11 <div class="badges" id="main-body" style="width:100%">
12     <p>
13         {% trans "Community gives you awards for your questions, answers and votes." %}
14         {% blocktrans %}Below is the list of available badges and number of times each type of badge has been awarded.
15     {% endblocktrans %}
16     </p>
17     <div id="medalList">
18         {% for badge in badges %}
19         <div style="clear:both;line-height:30px">
20             <div style="float:left;min-width:30px;text-align:right;height:30px">
21             {% for a in mybadges %}
22                 {% ifequal a.badge_id badge.id %}
23                  <span style="font-size:175%; padding-right:5px; color:#5B9058;">&#10004;</span>
24                 {% endifequal %}
25             {% endfor %}
26             </div>
27             <div style="float:left;width:230px;">
28                 <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>
29             </div>
30             <p style="float:left;margin-top:8px;">
31                 {{ badge.description }}
32             </p>
33         </div>
34         {% endfor %}
35     </div>
36 </div>
37 {% endblock %}
38 {% block sidebar %}
39
40 <div class="boxC">
41     <h3>{% trans "Community badges" %}</h3>
42     <div class="body">
43     <p>
44         <span title="{% trans "gold badge: the highest honor and is very rare" %}" class="medal"><span class="badge1">&#9679;</span>&nbsp;{% trans "gold" %}</span>
45     </p>
46     <p>
47         {% trans "gold badge description" %}
48     </p>
49     <p>
50         <span
51                         title="{% trans "silver badge: occasionally awarded for the very high quality contributions" %}" 
52                         class="medal"><span class="badge2">&#9679;</span>&nbsp;{% trans "silver" %}</span>
53     </p>
54     <p>
55         {% trans "silver badge description" %}
56     </p>
57     <p>
58         <span title="{% trans "bronze badge: often given as a special honor" %}" class="medal">
59                 <span class="badge3">&#9679;</span>&nbsp;{% trans "bronze" %}</span>
60     </p>
61     <p>
62         {% trans "bronze badge description" %}
63     </p>
64     </div>
65 </div>
66 {% endblock %}
67 <!-- end template badges.html -->