]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/tags.html
initial import
[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             $("#nav_tags").attr('className',"on");
12             $("#ipSearchTag").focus();
13
14             var orderby = "{{ tab_id }}";
15             if(orderby != "used" && orderby != "name")
16                 orderby = "used";
17             $("#sort_" + orderby).attr('className',"on");
18             $("#type-tag").attr('checked',true);
19
20             Hilite.exact = false;
21             Hilite.elementid = "searchtags";
22             Hilite.debug_referrer = location.href;
23         });
24         /*]]>*/
25         </script>
26 {% endblock %}
27 {% block content %}
28 <!-- Tabs -->
29 <div class="tabBar">
30     <div class="headQuestions">{% trans "Tag list" %}</div>
31     <div class="tabsA">
32         <a id="sort_name" href="{% url tags %}?sort=name" class="off" title="{% trans "sorted alphabetically" %}">{% trans "by name" %}</a>
33         <a id="sort_used" href="{% url tags %}?sort=used" class="off" title="{% trans "sorted by frequency of tag use" %}">{% trans "by popularity" %}</a>
34     </div>
35 </div>
36 <div id="searchtags">
37 <p>
38 {% if stag %}
39     {% trans "All tags matching query" %} '<span class="darkred"><strong>{{ stag }}</strong></span>' {% trans "all tags - make this empty in english" %}:
40 {% endif %}
41 {% if not tags.object_list %}
42     <span>{% trans "Nothing found" %}</span>
43 {% endif %}
44 </p>
45 {% if tags.object_list %}
46 <ul class="tagsList tags">
47 {% for tag in tags.object_list %}
48    <li>
49     <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
50         {{ tag }}
51     </a>&nbsp;
52     <span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
53     <br/>
54
55     </li>
56 {% endfor %}
57 </ul>
58 {% endif %}
59 </div>
60
61 {% endblock %}
62 {% block tail %}
63 <div class="pager">
64     {% cnprog_paginator context %}
65 </div>              
66 {% endblock %}
67 <!-- end tags.html -->