From 7b692b09d230349756358b6d8c0cadd8429492f2 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 29 Oct 2012 12:38:02 +0100 Subject: Add a button back to the thread in the message view --- hyperkitty/static/css/thread.css | 7 ++++++- hyperkitty/static/img/button.xcf | Bin 0 -> 9751 bytes hyperkitty/static/img/button_back.png | Bin 0 -> 3465 bytes hyperkitty/templates/message.html | 5 +++++ hyperkitty/views/message.py | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hyperkitty/static/img/button.xcf create mode 100644 hyperkitty/static/img/button_back.png (limited to 'hyperkitty') diff --git a/hyperkitty/static/css/thread.css b/hyperkitty/static/css/thread.css index cdd14e7..a59e51a 100644 --- a/hyperkitty/static/css/thread.css +++ b/hyperkitty/static/css/thread.css @@ -13,7 +13,8 @@ h1 { } header .thread-older, -header .thread-newer { +header .thread-newer, +header .thread-back { display: block; padding-top: 38px; width: 160px; @@ -31,6 +32,10 @@ header .thread-newer { float: left; background-image: url('../img/button_newer.png'); } +header .thread-back { + background-image: url('../img/button_back.png'); + margin-bottom: 2em; +} #thread_nav{ margin:auto; diff --git a/hyperkitty/static/img/button.xcf b/hyperkitty/static/img/button.xcf new file mode 100644 index 0000000..f8ec675 Binary files /dev/null and b/hyperkitty/static/img/button.xcf differ diff --git a/hyperkitty/static/img/button_back.png b/hyperkitty/static/img/button_back.png new file mode 100644 index 0000000..45ba4e1 Binary files /dev/null and b/hyperkitty/static/img/button_back.png differ diff --git a/hyperkitty/templates/message.html b/hyperkitty/templates/message.html index 35c3add..6c26c4f 100644 --- a/hyperkitty/templates/message.html +++ b/hyperkitty/templates/message.html @@ -1,5 +1,7 @@ {% extends "base.html" %} {% load gravatar %} +{% load hk_generic %} +{% load storm %} {% block additional_stylesheets %} @@ -8,6 +10,9 @@ {% block content %}
+ +

{{ message.subject }}

diff --git a/hyperkitty/views/message.py b/hyperkitty/views/message.py index 3eb753a..5ee2881 100644 --- a/hyperkitty/views/message.py +++ b/hyperkitty/views/message.py @@ -78,7 +78,10 @@ def index(request, mlist_fqdn, hashid): #elif message.likes - message.dislikes < 0: # message.likestatus = "dislike" + mlist = store.get_list(mlist_fqdn) + c = RequestContext(request, { + 'mlist' : mlist, 'list_name' : list_name, 'list_address': mlist_fqdn, 'message': message, -- cgit