From 4be17653fbfb58a82b90d9ee83a85cbae39bc41b Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Sun, 3 Dec 2017 15:52:27 +0100 Subject: [PATCH] always use tabs instead of spaces #346 --- server.py | 12 ++++++------ templates/course.html | 2 +- templates/lecture.html | 26 +++++++++++++------------- templates/timetable.html | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/server.py b/server.py index 0d68848..3f503bf 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 1437b4c..52cfbd7 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 37ba7ea..666787b 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 8cf8903..fd21257 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> -- GitLab