From cd1a2d5f2ec738ab2f17c86dcabe8733a682aa4f Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 4 Oct 2012 12:02:52 +0200 Subject: Improve attachments display --- hyperkitty/static/css/thread.css | 9 +++++---- hyperkitty/templates/message.html | 11 ---------- hyperkitty/templates/messages/message.html | 32 +++++++++++++++++++++++------- hyperkitty/templates/thread.html | 6 +++++- hyperkitty/templatetags/poll_extras.py | 2 +- hyperkitty/templatetags/storm.py | 7 +++++++ hyperkitty/views/list.py | 3 +++ hyperkitty/views/message.py | 2 -- 8 files changed, 46 insertions(+), 26 deletions(-) create mode 100644 hyperkitty/templatetags/storm.py (limited to 'hyperkitty') diff --git a/hyperkitty/static/css/thread.css b/hyperkitty/static/css/thread.css index 268e7ff..88a2050 100644 --- a/hyperkitty/static/css/thread.css +++ b/hyperkitty/static/css/thread.css @@ -160,10 +160,6 @@ color: rgb(167, 169, 172); } -.email_info { - padding: 0px; -} - .add_comment { float: right; } @@ -237,3 +233,8 @@ white-space: pre; } +ul.attachments-list li { + display: list-item; + list-style-type: disc; +} + diff --git a/hyperkitty/templates/message.html b/hyperkitty/templates/message.html index e9f2806..5d061e5 100644 --- a/hyperkitty/templates/message.html +++ b/hyperkitty/templates/message.html @@ -9,17 +9,6 @@
{% include 'messages/first_email.html' with first_mail=message %} - - {% if attachments|length %} -

Attachments

- - {% endif %}
{% endblock %} diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 54613e0..08d5cca 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -1,3 +1,4 @@ +{% load storm %} {% load gravatar %}
@@ -14,18 +15,17 @@
+ {% if unfolded %} -
+
{% else %} -