From 39deff37c950534d2a44e4bd040e49118b34a731 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 11 Jul 2013 17:18:25 +0200 Subject: Add the category on the threads list --- hyperkitty/templates/thread.html | 2 +- hyperkitty/templates/thread_list.html | 1 + hyperkitty/templates/threads/category.html | 1 + hyperkitty/templates/threads/summary_thread_large.html | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index ad07d9f..04e9522 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -27,7 +27,7 @@ {% endif %} {% endfor %}

{{ subject }}

-
+
{% include 'threads/category.html' %}
diff --git a/hyperkitty/templates/thread_list.html b/hyperkitty/templates/thread_list.html index 32bbdfe..c6c70c7 100644 --- a/hyperkitty/templates/thread_list.html +++ b/hyperkitty/templates/thread_list.html @@ -68,6 +68,7 @@ $(document).ready(function() { $(this).addClass("collapsed"); } }); + setup_category(); }); {% endblock %} diff --git a/hyperkitty/templates/threads/category.html b/hyperkitty/templates/threads/category.html index ccacad5..e6e1f03 100644 --- a/hyperkitty/templates/threads/category.html +++ b/hyperkitty/templates/threads/category.html @@ -1,5 +1,6 @@ {% load url from future %} + {{ category_form.errors.category }} {% if category %} diff --git a/hyperkitty/templates/threads/summary_thread_large.html b/hyperkitty/templates/threads/summary_thread_large.html index 66bff39..f03bbbf 100644 --- a/hyperkitty/templates/threads/summary_thread_large.html +++ b/hyperkitty/templates/threads/summary_thread_large.html @@ -13,6 +13,9 @@ href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}" >{{ thread.starting_email.subject|strip_subject:mlist }} {{ thread|get_date|timesince }} + + {% include 'threads/category.html' with category=thread.category_hk category_form=thread.category_form threadid=thread.thread_id %} +
{% if thread.category_tag %} -- cgit