summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/thread.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-06 21:29:42 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-06 21:29:42 +0100
commitfa04cb6fb6da7861c6d23991a5c2636e5b2a641f (patch)
tree7d12e02a61db119c77ee21ac1fd20cf031e19972 /hyperkitty/templates/thread.html
parent69aeee8dce2840cb2bb220986e49fcbc690d25a3 (diff)
downloadhyperkitty-fa04cb6fb6da7861c6d23991a5c2636e5b2a641f.tar.gz
hyperkitty-fa04cb6fb6da7861c6d23991a5c2636e5b2a641f.tar.xz
hyperkitty-fa04cb6fb6da7861c6d23991a5c2636e5b2a641f.zip
Refactoring of HTML tags and CSS classes
Diffstat (limited to 'hyperkitty/templates/thread.html')
-rw-r--r--hyperkitty/templates/thread.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html
index 3cc3819..71e9da2 100644
--- a/hyperkitty/templates/thread.html
+++ b/hyperkitty/templates/thread.html
@@ -35,7 +35,7 @@
<section id="thread_content">
<!-- Start first email -->
- {% include 'messages/first_email.html' %}
+ {% include 'messages/message.html' with email=first_mail unfolded='True' %}
<!-- End first email -->
<p class="sort-mode">
@@ -48,14 +48,16 @@
{% endif %}
</p>
- {% for email in replies %}
- <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 -->
+ <div class="replies">
+ {% for email in replies %}
+ <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 -->
+ </div>
+ {% endfor %}
</div>
- {% endfor %}
</section>
</div>
@@ -79,7 +81,7 @@
<script type="text/javascript">
$(document).ready(function() {
// hide quotes by default in the thread view
- $('div.email_body .quoted-text').each(function() {
+ $('div.email-body .quoted-text').each(function() {
var linescount = $(this).text().split("\n").length;
if (linescount > 3) {
// hide if the quote is more than 3 lines long