]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/tags.html
More polished PAI for module html injection and added a couple more places to inject...
[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     <div class="tabsA">
31         <a id="sort_name" href="{% url tags %}?sort=name" class="off" title="{% trans "sorted alphabetically" %}">{% trans "by name" %}</a>
32         <a id="sort_used" href="{% url tags %}?sort=used" class="off" title="{% trans "sorted by frequency of tag use" %}">{% trans "by popularity" %}</a>
33     </div>
34 </div>
35 <div id="searchtags">
36 <p>
37 {% if stag %}
38     {% trans "All tags matching query" %} '<span class="darkred"><strong>{{ stag }}</strong></span>' {% trans "all tags - make this empty in english" %}:
39 {% endif %}
40 {% if not tags.object_list %}
41     <span>{% trans "Nothing found" %}</span>
42 {% endif %}
43 </p>
44 {% if tags.object_list %}
45 <ul class="tagsList tags">
46 {% for tag in tags.object_list %}
47    <li>
48     <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
49         {{ tag }}
50     </a>&nbsp;
51     <span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
52     <br/>
53
54     </li>
55 {% endfor %}
56 </ul>
57 {% endif %}
58 </div>
59
60 {% endblock %}
61 {% block tail %}
62 <div class="pager">
63     {% cnprog_paginator context %}
64 </div>              
65 {% endblock %}
66 <!-- end tags.html -->