summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-07-12 11:13:54 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-07-12 11:13:54 +0200
commit579bd91b14f8d2926f64aa6032b41145f90b46fe (patch)
tree4fb79092d0a278d2625a8807fdda06a5717b01be /hyperkitty/templates/threads
parent65146a1229604b059e1d637761e9096068a05ab3 (diff)
downloadhyperkitty-579bd91b14f8d2926f64aa6032b41145f90b46fe.tar.gz
hyperkitty-579bd91b14f8d2926f64aa6032b41145f90b46fe.tar.xz
hyperkitty-579bd91b14f8d2926f64aa6032b41145f90b46fe.zip
Revive the 'discussions by category' widget on the overview page
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r--hyperkitty/templates/threads/summary_thread.html17
1 files changed, 5 insertions, 12 deletions
diff --git a/hyperkitty/templates/threads/summary_thread.html b/hyperkitty/templates/threads/summary_thread.html
index 87a5433..82c9398 100644
--- a/hyperkitty/templates/threads/summary_thread.html
+++ b/hyperkitty/templates/threads/summary_thread.html
@@ -3,23 +3,16 @@
{% load storm %}
<div class="thread">
- <span class="thread-id">#{{counter}}</span>
+ {% if counter %}<span class="thread-id">#{{counter}}</span>{% endif %}
<span class="thread-title"><a name="{{thread.thread_id}}"
href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
>{{ thread.subject|strip_subject:mlist }}</a></span>
- <div class="thread_stats">
+ <div class="thread-stats">
<ul class="inline-block">
- {% if thread.category_tag %}
- <li class="type type_{{thread.category_tag}}">
- <a href="{% url 'search_tag' mlist_fqdn=mlist.name tag=thread.category_tag %}"
- >{{thread.category}}</a>
- </li>
- {% endif %}
{% if thread.category %}
- <li class="type type_{{thread.category|lower}}">
- <a href="{% url 'search_tag' mlist_fqdn=mlist.name tag=thread.category|lower %}"
- >{{thread.category}}</a>
- </li>
+ <span class="label category" style="background-color:{{thread.category.color}}">
+ {{ thread.category.name|upper }}
+ </span>
{% endif %}
<li class="participant">
{{ thread.participants|length }}