Commit 4be17653 authored by Andreas Valder's avatar Andreas Valder
Browse files

always use tabs instead of spaces #346

parent a9761c66
...@@ -125,12 +125,12 @@ def dump_error_page(): ...@@ -125,12 +125,12 @@ def dump_error_page():
f.close() f.close()
def genlive(streams): def genlive(streams):
for stream in streams: for stream in streams:
stream['visible'] = True stream['visible'] = True
stream['downloadable'] = False stream['downloadable'] = False
stream['path'] = 'pub/hls/%s.m3u8'%stream['livehandle'] stream['path'] = 'pub/hls/%s.m3u8'%stream['livehandle']
stream['file_size'] = 0 stream['file_size'] = 0
return streams return streams
@app.route('/') @app.route('/')
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
{% if ismod() %} {% if ismod() %}
<div class="panel panel-default"> <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> <a data-toggle="collapse" href="#statspanel" class="plotlyresize"><h1 class="panel-title">Statistiken</h1></a>
</div> </div>
<div class="row panel-body collapse out panel-collapse" id="statspanel"> <div class="row panel-body collapse out panel-collapse" id="statspanel">
......
...@@ -76,19 +76,19 @@ ...@@ -76,19 +76,19 @@
{% if ismod() %} {% if ismod() %}
<div class="panel panel-default"> <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> <a data-toggle="collapse" href="#statspanel" class="plotlyresize"><h1 class="panel-title">Statistiken</h1></a>
</div> </div>
<div class="row panel-body collapse out panel-collapse" id="statspanel"> <div class="row panel-body collapse out panel-collapse" id="statspanel">
<div class="col-md-6 col-xs-12"> <div class="col-md-6 col-xs-12">
<p class="text-center">Zuschauer pro Tag</p> <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 class="plot-view" data-url="{{url_for('stats_viewsperday', req="lecture", param=lecture.id)}}"></div>
</div> </div>
<div class="col-md-6 col-xs-12"> <div class="col-md-6 col-xs-12">
<p class="text-center">Zuschauer im Livestream</p> <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 class="plot-view" data-url="{{url_for('stats_generic', req="live_views", param=lecture.id)}}"></div>
</div> </div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
...@@ -120,8 +120,8 @@ $(function() { ...@@ -120,8 +120,8 @@ $(function() {
container: 'body', container: 'body',
content: function() { content: function() {
var zeropad = function (num, places) { var zeropad = function (num, places) {
var zero = places - num.toString().length + 1; var zero = places - num.toString().length + 1;
return Array(+(zero > 0 && zero)).join("0") + num; return Array(+(zero > 0 && zero)).join("0") + num;
}; };
var timestamp = videojs('videoplayer').currentTime() var timestamp = videojs('videoplayer').currentTime()
var h = zeropad( Math.trunc(timestamp/3600),2); var h = zeropad( Math.trunc(timestamp/3600),2);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
}); });
}); });
</script> </script>
</div> </div>
<div class="panel-body row table-responsive"> <div class="panel-body row table-responsive">
<table id="timetable" class="table table-bordered col-xs-12" style="width: auto; min-width: 100%;"> <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> <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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment