diff --git a/server.py b/server.py
index 0d6884800832851607080f4dafdd777e0a8fe1e3..3f503bf37581c7e233d1b367d55f53f5e873aed0 100644
--- a/server.py
+++ b/server.py
@@ -125,12 +125,12 @@ def dump_error_page():
 	f.close()
 
 def genlive(streams):
-        for stream in streams:
-                stream['visible'] = True
-                stream['downloadable'] = False
-                stream['path'] = 'pub/hls/%s.m3u8'%stream['livehandle']
-                stream['file_size'] = 0
-        return streams
+	for stream in streams:
+		stream['visible'] = True
+		stream['downloadable'] = False
+		stream['path'] = 'pub/hls/%s.m3u8'%stream['livehandle']
+		stream['file_size'] = 0
+	return streams
 
 
 @app.route('/')
diff --git a/templates/course.html b/templates/course.html
index 1437b4cd639732d000ab4aed5cbe57c2ee089669..52cfbd7c77a2b8484cb907139fab1c613a509d4e 100644
--- a/templates/course.html
+++ b/templates/course.html
@@ -58,7 +58,7 @@
 	
 {% if ismod() %}
 <div class="panel panel-default">
-        <div class="panel-heading">
+	<div class="panel-heading">
 		<a data-toggle="collapse" href="#statspanel" class="plotlyresize"><h1 class="panel-title">Statistiken</h1></a>
 	</div>
 	<div class="row panel-body collapse out panel-collapse" id="statspanel">
diff --git a/templates/lecture.html b/templates/lecture.html
index 37ba7ea07608334b6aa2a84821351213481f25f7..666787bda60a858da5aee2a9b8cf30d32d0f4fd3 100644
--- a/templates/lecture.html
+++ b/templates/lecture.html
@@ -76,19 +76,19 @@
 
 {% if ismod() %}
 <div class="panel panel-default">
-        <div class="panel-heading">
-                <a data-toggle="collapse" href="#statspanel" class="plotlyresize"><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">
-                        <p class="text-center">Zuschauer pro Tag</p>
+	<div class="panel-heading">
+		<a data-toggle="collapse" href="#statspanel" class="plotlyresize"><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">
+			<p class="text-center">Zuschauer pro Tag</p>
 			<div class="plot-view" data-url="{{url_for('stats_viewsperday', req="lecture", param=lecture.id)}}"></div>
-                </div>
-                <div class="col-md-6 col-xs-12">
-                        <p class="text-center">Zuschauer im Livestream</p>
+		</div>
+		<div class="col-md-6 col-xs-12">
+			<p class="text-center">Zuschauer im Livestream</p>
 			<div class="plot-view" data-url="{{url_for('stats_generic', req="live_views", param=lecture.id)}}"></div>
-                </div>
-        </div>
+		</div>
+	</div>
 </div>
 {% endif %}
 
@@ -120,8 +120,8 @@ $(function() {
 				container: 'body',
 				content: function() {
 					var zeropad = function (num, places) {
-						  var zero = places - num.toString().length + 1;
-						    return Array(+(zero > 0 && zero)).join("0") + num;
+						var zero = places - num.toString().length + 1;
+						return Array(+(zero > 0 && zero)).join("0") + num;
 					};
 					var timestamp = videojs('videoplayer').currentTime()
 					var h = zeropad( Math.trunc(timestamp/3600),2);
diff --git a/templates/timetable.html b/templates/timetable.html
index 8cf89037386ef7ebdd9b1f7b4a0d687282de41dc..fd21257852c3c87a172e8d12421b78f4eaaa38f5 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -21,7 +21,7 @@
 					});
 				});
 			</script>
-       		</div>
+		</div>
 		<div class="panel-body row table-responsive">
 			<table id="timetable" class="table table-bordered col-xs-12" style="width: auto; min-width: 100%;">
 				<tr><th style="width: 30px;"></th>{% for d in days if (d.index < 5) or (d.lectures|length) > 0 %}<th style="min-width: 10em;" colspan="{{d.maxcol}}">{{ d.date.strftime("%A (%d.%m.%Y)") }}</th>{% endfor %}</tr>