summaryrefslogtreecommitdiffstats
path: root/templates/tags.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/tags.html')
-rw-r--r--templates/tags.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/tags.html b/templates/tags.html
new file mode 100644
index 00000000..0d2a972e
--- /dev/null
+++ b/templates/tags.html
@@ -0,0 +1,61 @@
+{% extends "base_content.html" %}
+{% load extra_tags %}
+{% load humanize %}
+{% block title %}{% spaceless %}标签列表{% endspaceless %}{% endblock %}
+{% block forejs %}
+ <script type="text/javascript">
+ $().ready(function(){
+ $("#nav_tags").attr('className',"on");
+ $("#ipSearchTag").focus();
+
+ var orderby = "{{ tab_id }}";
+ if(orderby != "used" && orderby != "name")
+ orderby = "used";
+ $("#sort_" + orderby).attr('className',"on");
+ $("#type-tag").attr('checked',true);
+
+ Hilite.exact = false;
+ Hilite.elementid = "searchtags";
+ Hilite.debug_referrer = location.href;
+ });
+
+ </script>
+{% endblock %}
+{% block content %}
+<!-- Tabs -->
+<div class="tabBar">
+ <div class="headQuestions">标签列表</div>
+ <div class="tabsA">
+ <a id="sort_name" href="/tags/?sort=name" class="off" title="按名称的字母先后顺序排序">按名称排序</a>
+ <a id="sort_used" href="/tags/?sort=used" class="off" title="按标签被使用的次数排序">按流行程度排序</a>
+ </div>
+</div>
+<div id="searchtags">
+<p>
+{% if stag %}
+ 匹配查询 '<span class="darkred"><strong>{{ stag }}</strong></span>' 的所有标签:
+{% endif %}
+{% if not tags.object_list %}
+ <span >没有找到相关数据。</span>
+{% endif %}
+</p>
+<ul class="tagsList tags">
+{% for tag in tags.object_list %}
+ <li>
+ <a href="{% url forum.views.tag tag|urlencode %}" title="查看有关'{{ tag }}'的问题" rel="tag">
+ {{ tag }}
+ </a>&nbsp;
+ <span class="tag-number">× {{ tag.used_count|intcomma }}</span>
+ <br>
+
+ </li>
+{% endfor %}
+</ul>
+</div>
+
+{% endblock %}
+{% block tail %}
+<div class="pager">
+ {% cnprog_paginator context %}
+</div>
+{% endblock %} \ No newline at end of file