blob: 19383bb8fb32e73494ef78352fff08d31d277642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{% extends "two_column_body.html" %}
{% import "macros.html" as macros %}
<!-- tags.html -->
{% block title %}{% spaceless %}{% trans %}Tag list{% endtrans %}{% endspaceless %}{% endblock %}
{% block content %}
<!-- Tabs -->
<div class="tabBar">
{% if stag %}
<h1>{% trans %}Tags, matching "{{ stag }}"{% endtrans %}</h1>
{% else %}
<h1>{% trans %}Tag list{% endtrans %}</h1>
{% endif %}
<div class="tabsA">
<a
id="sort_name"
href="{% url tags %}?sort=name"
{% if tab_id == 'name' %}class="on"{% endif %}
title="{% trans %}sorted alphabetically{% endtrans %}"
><span>{% trans %}by name{% endtrans %}</span></a>
<a
id="sort_used"
href="{% url tags %}?sort=used"
{% if tab_id == 'used' %}class="on"{% endif %}
title="{% trans %}sorted by frequency of tag use{% endtrans %}"
><span>{% trans %}by popularity{% endtrans %}</span></a>
</div>
</div>
{% if tag_list_type == 'list' %}
{% if not tags.object_list %}
<span>{% trans %}Nothing found{% endtrans %}</span>
{% endif %}
{% if tags.object_list %}
<div class='clearfix'></div>
<ul class='tags'>
{% for tag in tags.object_list %}
<li>
{{ macros.tag_widget(
tag = tag.name,
url_params = 'start_over:true',
html_tag = 'div',
extra_content = '<span class="tag-number">× ' ~
tag.used_count|intcomma ~ '</span>'
)
}}
</li>
{% endfor %}
</ul>
<div class="pager">
{{macros.paginator(paginator_context)}}
</div>
{% endif %}
{% else %}
<div class="clearfix"></div>
{% if not tags %}
<span>{% trans %}Nothing found{% endtrans %}</span>
{% endif %}
{{ macros.tag_cloud(tags = tags, font_sizes = font_size) }}
{% endif %}
{% endblock %}
{% block endjs %}
<script type="text/javascript">
/*<![CDATA[*/
$().ready(function(){
$("#ipSearchTag").focus();
$("#type-tag").attr('checked',true);
Hilite.exact = false;
Hilite.elementid = "searchtags";
Hilite.debug_referrer = location.href;
});
/*]]>*/
</script>
{% endblock %}
<!-- end tags.html -->
|