diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-12-05 12:12:11 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-12-05 12:12:11 +0100 |
commit | 8486805b982b49c1a12f28945ec7346a605d0f5b (patch) | |
tree | 7965cdcbd4ee11a64425e4a73d6653e2592c2875 /hyperkitty/templates | |
parent | 716fee916da1096edb865bb43224594574d5a85b (diff) | |
download | hyperkitty-8486805b982b49c1a12f28945ec7346a605d0f5b.tar.gz hyperkitty-8486805b982b49c1a12f28945ec7346a605d0f5b.tar.xz hyperkitty-8486805b982b49c1a12f28945ec7346a605d0f5b.zip |
Snip quoted text in replies
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/messages/message.html | 9 | ||||
-rw-r--r-- | hyperkitty/templates/thread.html | 6 |
2 files changed, 5 insertions, 10 deletions
diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 0dd93a8..d235813 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -29,13 +29,8 @@ </div> </div> -{% if unfolded %} -<div class="first_email_body"> -{% else %} -<div class="email_body"> -{% endif %} -{{email.content|urlizetrunc:76|escapeemail}} -</div> +<div class="{% if unfolded %}first_{% endif %}email_body" + >{{ email.content|urlizetrunc:76|escapeemail|snip_quoted }}</div> {% if unfolded and email.attachments|count %} <p class="attachments">Attachments:</p> diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index 20dc8c6..9e1333f 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -44,9 +44,9 @@ <script src="{{ STATIC_URL }}js/libs/jquery.expander.js"></script> <script type="text/javascript"> $(document).ready(function() { - $('div.email_body').expander({ - userCollapseText : 'View Less', - expandText : 'View More' + $('div.email_body a.quoted-switch').click(function() { + $(this).next(".quoted-text").toggle(); + return false; }); }); </script> |