diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-07-10 19:02:39 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-07-10 19:02:39 +0200 |
commit | 5b18d42d67afc08f469ec216b1d55adeb19feda8 (patch) | |
tree | f159cfb488b7f1c25c0a78cd882daaafb794f0a4 /hyperkitty/templates | |
parent | f2950f4b226b5a7d388c4eb2fb6c383e72ac6d54 (diff) | |
download | hyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.tar.gz hyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.tar.xz hyperkitty-5b18d42d67afc08f469ec216b1d55adeb19feda8.zip |
Add categories to threads
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/thread.html | 1 | ||||
-rw-r--r-- | hyperkitty/templates/threads/category.html | 14 | ||||
-rw-r--r-- | hyperkitty/templates/threads/right_col.html | 3 |
3 files changed, 18 insertions, 0 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index 491d08a..ee102fa 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -77,6 +77,7 @@ <script type="text/javascript"> $(document).ready(function() { + setup_category(); setup_tags(); setup_favorites(); setup_emails_list(); 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> |