diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-07-12 11:13:54 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-07-12 11:13:54 +0200 |
commit | 579bd91b14f8d2926f64aa6032b41145f90b46fe (patch) | |
tree | 4fb79092d0a278d2625a8807fdda06a5717b01be /hyperkitty/templates/recent_activities.html | |
parent | 65146a1229604b059e1d637761e9096068a05ab3 (diff) | |
download | hyperkitty-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/recent_activities.html')
-rw-r--r-- | hyperkitty/templates/recent_activities.html | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/hyperkitty/templates/recent_activities.html b/hyperkitty/templates/recent_activities.html index 3a475e4..64d3db8 100644 --- a/hyperkitty/templates/recent_activities.html +++ b/hyperkitty/templates/recent_activities.html @@ -119,20 +119,17 @@ <div class="span6"> - {% if threads_per_category %} - <section id="discussion-by-topic" class="widget"> - <h3>Discussion by topic the last 30 days</h3> - {% for category, thread in threads_per_category.items %} - <div> - <h3 class="category type_{{category}}"> {{category}} </h3> - <ul class="category_entry"> - {% for email in thread %} - <li> - {{email.title}} - </li> - {% endfor %} - </ul> - </div> + {% if threads_by_category %} + <section id="discussion-by-category" class="widget"> + <h3>Discussion by category</h3> + {% for category, threads in threads_by_category.items %} + <h4 class="label{% if forloop.first %} first{% endif %}" + style="background-color:{{category.color}}" + >{{ category.name|upper }} + </h4> + {% for thread in threads %} + {% include "threads/summary_thread.html" %} + {% endfor %} {% endfor %} </section> {% endif %} |