diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-10-12 12:23:42 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-10-12 12:23:42 +0200 |
commit | 923d139f90f4a1c268965e03aacc3acd72723497 (patch) | |
tree | e396110c9424f063a36f325a3cc58948792c6dae | |
parent | 4e047f5c25f103c45c03722c76117c3a8566e9fb (diff) | |
download | hyperkitty-923d139f90f4a1c268965e03aacc3acd72723497.tar.gz hyperkitty-923d139f90f4a1c268965e03aacc3acd72723497.tar.xz hyperkitty-923d139f90f4a1c268965e03aacc3acd72723497.zip |
Add an icon for the attachments list toggle
-rw-r--r-- | hyperkitty/lib/archiver.py | 1 | ||||
-rw-r--r-- | hyperkitty/static/css/style.css | 14 | ||||
-rw-r--r-- | hyperkitty/static/img/mail-attachment.png | bin | 0 -> 649 bytes | |||
-rw-r--r-- | hyperkitty/templates/messages/message.html | 2 |
4 files changed, 15 insertions, 2 deletions
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 Binary files differnew file mode 100644 index 0000000..529bb7f --- /dev/null +++ b/hyperkitty/static/img/mail-attachment.png 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 %} <li class="attachments"> - <a href="#attachments">{{ email.attachments|count }} attachment(s)</a> + <a class="attachments" href="#attachments">{{ email.attachments|count }} attachment(s)</a> <ul class="attachments-list"> {% for attachment in email.attachments %} <li><a href="{% url message_attachment mlist_fqdn=list_address, hashid=email.message_id_hash, counter=attachment.counter, filename=attachment.name %}">{{attachment.name}}</a> |