Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
4be17653
Commit
4be17653
authored
Dec 03, 2017
by
Andreas Valder
Browse files
always use tabs instead of spaces #346
parent
a9761c66
Changes
4
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
4be17653
...
...
@@ -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
(
'/'
)
...
...
templates/course.html
View file @
4be17653
...
...
@@ -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"
>
...
...
templates/lecture.html
View file @
4be17653
...
...
@@ -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
);
...
...
templates/timetable.html
View file @
4be17653
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment