From fd9ac73da6bd9c99d93cc79bc6165deb24842cbe Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Fri, 12 Oct 2012 12:23:42 +0200 Subject: Add an icon for the attachments list toggle --- hyperkitty/lib/archiver.py | 1 - hyperkitty/static/css/style.css | 14 ++++++++++++++ hyperkitty/static/img/mail-attachment.png | Bin 0 -> 649 bytes hyperkitty/templates/messages/message.html | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 hyperkitty/static/img/mail-attachment.png diff --git a/hyperkitty/lib/archiver.py b/hyperkitty/lib/archiver.py index 2e21e27..bf1c1ff 100644 --- a/hyperkitty/lib/archiver.py +++ b/hyperkitty/lib/archiver.py @@ -37,7 +37,6 @@ class Archiver(object): if settings_path.endswith("/settings.py"): # we want the directory settings_path = os.path.dirname(settings_path) - settings_path = "/srv/dev/mailman/hk-app" #path_added = False if settings_path not in sys.path: #path_added = True diff --git a/hyperkitty/static/css/style.css b/hyperkitty/static/css/style.css index a8c7a16..ae32605 100644 --- a/hyperkitty/static/css/style.css +++ b/hyperkitty/static/css/style.css @@ -400,3 +400,17 @@ p.attachments { margin-bottom: 0; font-weight: bold; } +li.attachments a.attachments { + padding-left: 20px; + margin-left: 1em; + background: url("../img/mail-attachment.png") no-repeat scroll left; +} +li.attachments ul { + position: absolute; + background-color: #F6F6F6; + margin-left: 0; +} +li.attachments ul li { + list-style-position: inside; + padding-left: 0.5em; +} diff --git a/hyperkitty/static/img/mail-attachment.png b/hyperkitty/static/img/mail-attachment.png new file mode 100644 index 0000000..529bb7f Binary files /dev/null and b/hyperkitty/static/img/mail-attachment.png differ diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 874a849..ae111d3 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -61,7 +61,7 @@ {% endif %} {% if not unfolded and email.attachments|count %}
  • - {{ email.attachments|count }} attachment(s) + {{ email.attachments|count }} attachment(s)