From 671f4bb859d6f8927c97504b97ecf14cb6318fdb Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Fri, 8 Feb 2013 16:27:52 +0100 Subject: WIP: Create new thread button --- hyperkitty/static/css/hyperkitty.css | 9 +++++++++ hyperkitty/templates/message_new.html | 33 +++++++++++++++++++++++++++++++++ hyperkitty/templates/thread_list.html | 2 ++ hyperkitty/urls.py | 2 ++ hyperkitty/views/message.py | 18 ++++++++++++++++-- 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 hyperkitty/templates/message_new.html diff --git a/hyperkitty/static/css/hyperkitty.css b/hyperkitty/static/css/hyperkitty.css index 5381e86..1c7a4ca 100644 --- a/hyperkitty/static/css/hyperkitty.css +++ b/hyperkitty/static/css/hyperkitty.css @@ -394,6 +394,15 @@ form.likeform { margin-right: 4em; } +#thread-list .thread-list-header .thread-new { + float: right; +} +#thread-list .thread-list-header .thread-new strong { + font-size: 150%; + font-weight: bold; + margin-right: 0.2em; +} + /* Thread view */ diff --git a/hyperkitty/templates/message_new.html b/hyperkitty/templates/message_new.html new file mode 100644 index 0000000..c630127 --- /dev/null +++ b/hyperkitty/templates/message_new.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% load gravatar %} +{% load hk_generic %} +{% load storm %} + + +{% block title %} +Create a new thread - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{ app_name|title }} +{% endblock %} + +{% block content %} + +
+ +{% include 'threads/month_list.html' %} + +
+ +
+

Create a new thread

+
+ +
+ {% include 'messages/reply_form.html' %} +
+ +
+ +
+ +{% endblock %} + +{# vim: set noet: #} diff --git a/hyperkitty/templates/thread_list.html b/hyperkitty/templates/thread_list.html index cb95daa..d11fdf3 100644 --- a/hyperkitty/templates/thread_list.html +++ b/hyperkitty/templates/thread_list.html @@ -19,6 +19,8 @@

{{ mlist.display_name|default:mlist.name|escapeemail }} {{ list_title }}

+ + Start a new thread