]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/tags.html
Migrate to Django 1.6
[osqa.git] / forum / skins / default / templates / tags.html
1 {% extends "base_content.html" %}
2 <!-- tags.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 {% load humanize %}
6 {% block title %}{% spaceless %}{% trans "Tag list" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
8        <script type="text/javascript">
9        /*<![CDATA[*/
10         $().ready(function(){
11             $("#ipSearchTag").focus();
12
13             var orderby = "{{ tab_id }}";
14             if(orderby != "used" && orderby != "name")
15                 orderby = "used";
16             $("#sort_" + orderby).attr('className',"on");
17             $("#type-tag").attr('checked',true);
18
19             Hilite.exact = false;
20             Hilite.elementid = "searchtags";
21             Hilite.debug_referrer = location.href;
22         });
23         /*]]>*/
24         </script>
25 {% endblock %}
26 {% block content %}
27 <!-- Tabs -->
28 <div class="tabBar">
29     <div class="headQuestions">{% trans "Tag list" %}</div>
30     {{ tags.paginator.sort_tabs }}
31 </div>
32 <div id="searchtags">
33 <p>
34 {% if stag %}
35     {% trans "All tags matching query" %} '<span class="darkred"><strong>{{ stag }}</strong></span>':
36 {% endif %}
37 {% if not tags.paginator.count %}
38     <span>{% trans "Nothing found" %}</span>
39 {% endif %}
40 </p>
41 {% if tags.paginator.count %}
42 <ul class="tagsList tags">
43 {% for tag in tags.paginator.page %}
44    <li>
45     <a class="tag-link-{{ tag }}" href="{% url "tag_questions" tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
46         {{ tag }}
47     </a>&nbsp;
48     <span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
49     <br/>
50
51     </li>
52 {% endfor %}
53 </ul>
54 {% endif %}
55 </div>
56
57 {% endblock %}
58 {% block tail %}
59 <div class="pager">
60     {{ tags.paginator.page_numbers }}
61 </div>              
62 {% endblock %}
63 <!-- end tags.html -->