From 13890663d32731d1d00c02e5da0aa377d9fa6861 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Fri, 19 May 2017 20:43:29 +0200
Subject: [PATCH] moved course statistic to panel

---
 templates/course.html | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/templates/course.html b/templates/course.html
index 6bbb9e9..7801fff 100644
--- a/templates/course.html
+++ b/templates/course.html
@@ -35,7 +35,7 @@
 				</tbody>
 			</table>
 		</div>
-		{% if ismod() %}
+	{% if ismod() %}
 		<div class="col-xs-12" style="margin-top: 20px">
 			<table class="table-condensed table-top-aligned">
 				<tbody>
@@ -51,11 +51,22 @@
 				</tbody>
 			</table>
 		</div>
-		<div class="col-xs-6 plot-view" data-url="{{url_for('stats_viewsperday', req="course", param=course.id)}}"></div>
-		<div class="col-xs-6 plot-view" data-type="bar" data-url="{{url_for('stats_generic', req="lecture_views", param=course.id)}}"></div>
-		{% endif %}
+	{% endif %}
 	</div>
 </div>
+	
+{% if ismod() %}
+<div class="panel panel-default">
+        <div class="panel-heading">
+		<a data-toggle="collapse" href="#statspanel"><h1 class="panel-title">Statistiken</h1></a>
+	</div>
+	<div class="row panel-body collapse out panel-collapse" id="statspanel">
+		<div class="col-md-6 col-xs-12 plot-view" data-url="{{url_for('stats_viewsperday', req="course", param=course.id)}}"></div>
+		<div class="col-md-6 col-xs-12 plot-view" data-type="bar" data-url="{{url_for('stats_generic', req="lecture_views", param=course.id)}}"></div>
+	</div>
+</div>
+{% endif %}
+
 <div class="panel panel-default">
 	<div class="panel-heading">
 		<h1 class="panel-title">Videos{% if ismod() %} <a class="btn btn-default" style="margin-right: 5px;" href="{{ url_for('create', table='lectures', time=datetime.now(), title='Noch kein Titel', visible='0', course_id=course.id, ref=request.url) }}">Neuer Termin</a><a class="btn btn-default" style="margin-right: 5px;" href="{{url_for('list_import_sources', id=course['id'])}}">Campus Import</a>{% endif %} <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed', handle=course.handle)}}" style="text-decoration: none"></a> </h1>
-- 
GitLab