Commit 891e23ae936f9112627f83d636ba683bc4af5280

Authored by Matheus Fernandes
1 parent 317676c5

Fixed thread list message preview

Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
colab/super_archives/templates/superarchives/thread-dashboard.html
@@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
6 {% block main-content %} 6 {% block main-content %}
7 <h2>{% trans 'Groups'|title %}</h2> 7 <h2>{% trans 'Groups'|title %}</h2>
8 <hr/> 8 <hr/>
9 -  
10 {% for mailinglist in lists %} 9 {% for mailinglist in lists %}
11 {% if mailinglist.get_latest or mailinglist.get_most_relevant %} 10 {% if mailinglist.get_latest or mailinglist.get_most_relevant %}
12 <h3><b>{{ mailinglist.name|title|lower }} {% if mailinglist.description %} ({{ mailinglist.description }}){% endif %}</b></h3> 11 <h3><b>{{ mailinglist.name|title|lower }} {% if mailinglist.description %} ({{ mailinglist.description }}){% endif %}</b></h3>
@@ -20,7 +19,7 @@ @@ -20,7 +19,7 @@
20 <h4>{% trans 'latest'|title %}</h4> 19 <h4>{% trans 'latest'|title %}</h4>
21 <ul class="message-list"> 20 <ul class="message-list">
22 {% for thread in mailinglist.get_latest %} 21 {% for thread in mailinglist.get_latest %}
23 - {% include "message-preview.html" with result=thread.latest_message %} 22 + {% include "dashboard-message-preview.html" with result=thread.latest_message %}
24 {% endfor %} 23 {% endfor %}
25 </ul> 24 </ul>
26 <div class="text-right"> 25 <div class="text-right">
@@ -34,7 +33,7 @@ @@ -34,7 +33,7 @@
34 <h4>{% trans 'most relevant'|title %}</h4> 33 <h4>{% trans 'most relevant'|title %}</h4>
35 <ul class="message-list"> 34 <ul class="message-list">
36 {% for thread in mailinglist.get_most_relevant %} 35 {% for thread in mailinglist.get_most_relevant %}
37 - {% include "message-preview.html" with result=thread %} 36 + {% include "dashboard-message-preview.html" with result=thread %}
38 {% endfor %} 37 {% endfor %}
39 </ul> 38 </ul>
40 <div class="text-right"> 39 <div class="text-right">