Truncate previews of email messages to ~3 lines

Emails can get very long.

When you’re trying to do other things on the page this results in a lot
of scrolling.

This commit truncates email messages to about 3 lines, and adds a JS
toggle which reveal the full contents of the email.
This commit is contained in:
Chris Hill-Scott
2016-04-11 15:16:41 +01:00
parent 33e1b2679f
commit 3a5b76ce2a
8 changed files with 108 additions and 6 deletions

View File

@@ -31,8 +31,10 @@
</tbody>
</table>
{% endif %}
<div class="email-message-body">
<div class="email-message-body" data-module="expand-collapse">
<div class="email-message-body-wrapper collapsed">
{{ body|nl2br }}
</div>
</div>
</div>
{% endmacro %}