summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-11-13 12:47:42 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-11-20 19:15:40 +0100
commitcdf8249b4cb0a05e88c181674aa0a70f25019e00 (patch)
treedcb444f60b8dfb0be7a8f9840e18c939f608ed68 /hyperkitty/templates/threads
parent85037f95b2b22a812938dc19aa2a9da35a6ea46f (diff)
downloadhyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.tar.gz
hyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.tar.xz
hyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.zip
Front page redesign
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r--hyperkitty/templates/threads/summary_thread.html10
-rw-r--r--hyperkitty/templates/threads/summary_thread_large.html2
2 files changed, 6 insertions, 6 deletions
diff --git a/hyperkitty/templates/threads/summary_thread.html b/hyperkitty/templates/threads/summary_thread.html
index e9b2b1f..5d0972c 100644
--- a/hyperkitty/templates/threads/summary_thread.html
+++ b/hyperkitty/templates/threads/summary_thread.html
@@ -8,9 +8,9 @@
<a name="{{thread.thread_id}}"
href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
>
- {% if thread.category %}
- <span class="label category" style="background-color:{{thread.category.color}}">
- {{ thread.category.name|upper }}
+ {% if thread.category_widget %}
+ <span class="label category" style="background-color:{{thread.category_widget.color}}">
+ {{ thread.category_widget.name|upper }}
</span>
{% endif %}
{% if thread.unread %}
@@ -21,10 +21,10 @@
<div class="thread-stats">
<ul class="inline-block">
<li class="participant">
- {{ thread.participants|length }}
+ {{ thread.participants_count }}
</li>
<li class="discussion">
- {{ thread.length }}
+ {{ thread|length }}
</li>
<span class="likestatus {{ thread.likestatus }}">+{{ thread.likes }}/-{{ thread.dislikes }}</span>
</ul>
diff --git a/hyperkitty/templates/threads/summary_thread_large.html b/hyperkitty/templates/threads/summary_thread_large.html
index 450278b..51e98a8 100644
--- a/hyperkitty/templates/threads/summary_thread_large.html
+++ b/hyperkitty/templates/threads/summary_thread_large.html
@@ -44,7 +44,7 @@
</ul>
{% endif %}
</div>
- <span class="participant">{{ thread.participants|length }} participants</span>
+ <span class="participant">{{ thread.participants_count }} participants</span>
<span class="discussion">{{ thread|length }} comments</span>
{% include "messages/like_form.html" with message_id_hash=thread.starting_email.message_id_hash object=thread %}
<a href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"