diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-12-14 19:14:20 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-12-14 19:14:20 +0100 |
commit | a132cf2b84bd250514c33e6393e9d9ef31b0b7c9 (patch) | |
tree | 31e2b5d32df22d45a8e052c274cbea7992de17ce /hyperkitty/templates | |
parent | 90d3f91df7851b97f07b903f353497742f80d325 (diff) | |
download | hyperkitty-a132cf2b84bd250514c33e6393e9d9ef31b0b7c9.tar.gz hyperkitty-a132cf2b84bd250514c33e6393e9d9ef31b0b7c9.tar.xz hyperkitty-a132cf2b84bd250514c33e6393e9d9ef31b0b7c9.zip |
Sort replies by thread, with indentation
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/thread.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index 8ea45d2..add1fba 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -26,8 +26,19 @@ {% include 'messages/first_email.html' %} <!-- End first email --> + <p class="sort-mode"> + {% if sort_mode == "date" %} + <a href="{% url thread threadid=threadid, mlist_fqdn=list_address %}?sort=thread" + >Show replies by thread</a> + {% else %} + <a href="{% url thread threadid=threadid, mlist_fqdn=list_address %}?sort=date" + >Show replies by date</a> + {% endif %} + </p> + {% for email in replies %} - <div class="{% cycle 'even' 'odd' %}"> + <div class="{% cycle 'even' 'odd' %}" + {% if email.level %}style="margin-left:{{ email.level|multiply:"2" }}em;"{% endif %}> <!-- Start email --> {% include 'messages/message.html' %} <!-- End of email --> |