summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-07-10 19:02:39 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-07-10 19:02:39 +0200
commit5b18d42d67afc08f469ec216b1d55adeb19feda8 (patch)
treef159cfb488b7f1c25c0a78cd882daaafb794f0a4 /hyperkitty/templates/threads
parentf2950f4b226b5a7d388c4eb2fb6c383e72ac6d54 (diff)
downloadhyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.tar.gz
hyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.tar.xz
hyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.zip
Add categories to threads
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r--hyperkitty/templates/threads/category.html14
-rw-r--r--hyperkitty/templates/threads/right_col.html3
2 files changed, 17 insertions, 0 deletions
diff --git a/hyperkitty/templates/threads/category.html b/hyperkitty/templates/threads/category.html
new file mode 100644
index 0000000..e830678
--- /dev/null
+++ b/hyperkitty/templates/threads/category.html
@@ -0,0 +1,14 @@
+{% load url from future %}
+
+ <a class="label {{category}}">
+ {% if category %}
+ {{ category|title }}
+ {% else %}
+ No category
+ {% endif %}
+ </a>
+ <form method="post" action="{% url 'thread_set_category' mlist_fqdn=mlist.name threadid=threadid %}">
+ {% csrf_token %}
+ {{ category_form.as_p }}
+ </form>
+
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html
index 5384d03..c92eabd 100644
--- a/hyperkitty/templates/threads/right_col.html
+++ b/hyperkitty/templates/threads/right_col.html
@@ -38,6 +38,9 @@
<i class="unread icon-eye-close"></i> {{ unread_count }} unread messages
{% endif %}
</p>
+ <div id="thread-category">
+ {% include 'threads/category.html' %}
+ </div>
<div id="tags">
{% include 'threads/tags.html' %}
</div>