summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/tags/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/default/templates/tags/header.html')
-rw-r--r--askbot/skins/default/templates/tags/header.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/askbot/skins/default/templates/tags/header.html b/askbot/skins/default/templates/tags/header.html
new file mode 100644
index 00000000..4f614f30
--- /dev/null
+++ b/askbot/skins/default/templates/tags/header.html
@@ -0,0 +1,34 @@
+<div id="content-header">
+ {% if stag %}
+ <h1 class="section-title">{% trans %}Tags, matching "{{ stag }}"{% endtrans %}</h1>
+ {% else %}
+ <h1 class="section-title">{% trans %}Tags{% endtrans %}</h1>
+ {% endif %}
+ <div class="tabBar tabBar-tags">
+ <div class="tabsA">
+ <span class="label">{% trans %}Sort by &raquo;{% endtrans %}</span>
+ <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>
+ {% if settings.ENABLE_TAG_MODERATION %}
+ {% if request.user.is_authenticated() and request.user.is_administrator_or_moderator() %}
+ <a
+ href="{% url moderate_tags %}"
+ {% if tab_id == 'used' %}class="on"{% endif %}
+ title="{% trans %}suggested{% endtrans %}"
+ ><span>{% trans %}moderated{% endtrans %}</span></a>
+ {% endif %}
+ {% endif %}
+ </div>
+ </div>
+</div>
+<div class="clearfix"></div>