summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/thread_list.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-12 13:29:32 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-12 13:29:32 +0100
commitccafc51ade9536046aeb096b04b069f17874fab4 (patch)
treee93564b45884debca14d561552a96a980819943d /hyperkitty/templates/thread_list.html
parent0b0395fe000957b336d0ece6b23af0083a0853ab (diff)
downloadhyperkitty-ccafc51ade9536046aeb096b04b069f17874fab4.tar.gz
hyperkitty-ccafc51ade9536046aeb096b04b069f17874fab4.tar.xz
hyperkitty-ccafc51ade9536046aeb096b04b069f17874fab4.zip
Add a "Create new thread" button
Diffstat (limited to 'hyperkitty/templates/thread_list.html')
-rw-r--r--hyperkitty/templates/thread_list.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/hyperkitty/templates/thread_list.html b/hyperkitty/templates/thread_list.html
index cb95daa..2b61792 100644
--- a/hyperkitty/templates/thread_list.html
+++ b/hyperkitty/templates/thread_list.html
@@ -15,7 +15,16 @@
<div id="thread-list" class="span8">
+ {% if flash_msg %}
+ <div class="flashmsg">
+ <div class="alert alert-success">{{ flash_msg }}</div>
+ </div>
+ {% endif %}
+
<div class="thread-list-header page-header">
+ <a href="{% url message_new mlist_fqdn=mlist.name %}"
+ class="thread-new btn{% if not user.is_authenticated %} disabled" title="You must be logged-in to create a thread.{% endif %}"
+ ><strong>+</strong> Start a new thread</a>
<h1>{{ mlist.display_name|default:mlist.name|escapeemail }}
<small>{{ list_title }}</small>
</h1>