From 2dd289c0778acc603019889518e27b226b38a52c Mon Sep 17 00:00:00 2001
From: Andreas Valder <andreasv@fsmpi.rwth-aachen.de>
Date: Wed, 31 Aug 2016 08:51:16 +0200
Subject: [PATCH] added buttons for new lectures/courses

---
 templates/course.html | 3 +++
 templates/videos.html | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/templates/course.html b/templates/course.html
index 48483e5..b023577 100644
--- a/templates/course.html
+++ b/templates/course.html
@@ -32,6 +32,9 @@
 <div class="panel panel-default">
 	<div class="panel-heading">
 		<h1 class="panel-title">Videos</h1>
+		{% if ismod() %}
+				<a class="btn btn-default" style="margin-right: 5px;" href="todo">Neuer Termin</a>
+		{% endif %}
 	</div>
 	<ul class="list-group lectureslist">
 		{% for l in lectures %}
diff --git a/templates/videos.html b/templates/videos.html
index 5be235c..61c93b5 100644
--- a/templates/videos.html
+++ b/templates/videos.html
@@ -3,6 +3,9 @@
 {% block content %}
 <div class="row">
 	<div class="col-xs-12 dropdown" style="margin-bottom: 10px;">
+		<span class="pull-right">
+			{% if ismod() %} <a class="btn btn-default" style="margin-right: 5px;" href="todo">Neue Veranstaltung</a> {% endif %}
+		
 		<button class="btn btn-primary dropdown-toggle pull-right" type="button" data-toggle="dropdown">Gruppierung
 		<span class="caret"></span></button>
 		<ul class="dropdown-menu dropdown-menu-right">
@@ -10,6 +13,7 @@
 			<li><a href="?groupedby=title">Veranstaltungen</a></li>
 			<li><a href="?groupedby=organizer">Dozenten</a></li>
 		</ul>
+		</span>
 	</div>
 </div>
 {% for g in courses|groupby(groupedby)|reverse %}
-- 
GitLab