From e0f75739e579952e1781b331a01fe9b22748edd0 Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Wed, 7 Sep 2016 00:20:13 +0200
Subject: [PATCH] Add button on index page to create new announcements

---
 templates/index.html | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/templates/index.html b/templates/index.html
index 654bd93..6b34bdc 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,6 +3,17 @@
 {% set page_border = 0 %}
 {% set min_announcement_level = 0 %}
 {% block content %}
+<div class="row">
+	<div class="col-xs-12">
+		<ul class="list-inline pull-right">
+			{% if ismod() %}
+      <li style="padding-right: 0px;">
+        <a class="btn btn-default" href="{{ url_for('new_announcement', ref=request.url) }}">Neue Ankündigung</a>
+      </li>
+      {% endif %}
+		</ul>
+	</div>
+</div>
 <div class="row">
 	<div class="col-md-6 panel-group">
 		<div class="panel panel-default">
-- 
GitLab