summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-11-25 22:48:05 +0100
committerAurélien Bompard <aurelien@bompard.org>2012-11-25 22:48:05 +0100
commit881cf629918fcd2bafcf69878688972f64bc1dff (patch)
treea72376fbe372791c310466487435354c8ee82ea4 /hyperkitty/templates
parent7557ae816460130f81d499352b83012707f752e4 (diff)
downloadhyperkitty-881cf629918fcd2bafcf69878688972f64bc1dff.tar.gz
hyperkitty-881cf629918fcd2bafcf69878688972f64bc1dff.tar.xz
hyperkitty-881cf629918fcd2bafcf69878688972f64bc1dff.zip
Get rid of redundant SQL queries
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/recent_activities.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/hyperkitty/templates/recent_activities.html b/hyperkitty/templates/recent_activities.html
index cca93d8..242d38a 100644
--- a/hyperkitty/templates/recent_activities.html
+++ b/hyperkitty/templates/recent_activities.html
@@ -82,7 +82,7 @@
<span class="thread_id">#{{forloop.counter}}</span>
<span class="thread_title"><a name="{{thread.thread_id}}"
href="{% url thread threadid=thread.thread_id, mlist_fqdn=list_address %}"
- >{{ thread.starting_email.subject|strip_subject:mlist }}</a></span>
+ >{{ thread.subject|strip_subject:mlist }}</a></span>
<div class="thread_stats">
<ul class="inline-block">
{% if thread.category_tag %}
@@ -106,7 +106,7 @@
{{ thread.participants|length }}
</li>
<li class="discussion">
- {{ thread|length }}
+ {{ thread.length }}
</li>
</ul>
</div>
@@ -123,7 +123,7 @@
<span class="thread_id">#{{forloop.counter}}</span>
<span class="thread_title"> <a name="{{thread.thread_id}}"
href="{% url thread threadid=thread.thread_id, mlist_fqdn=list_address %}"
- >{{ thread.starting_email.subject|strip_subject:mlist }}</a> </span>
+ >{{ thread.subject|strip_subject:mlist }}</a> </span>
<div class="thread_stats">
<ul class="inline-block">
{% if thread.category_tag %}
@@ -147,7 +147,7 @@
{{ thread.participants|length }}
</li>
<li class="discussion">
- {{ thread|length }}
+ {{ thread.length }}
</li>
</ul>
</div>