Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
aeb15dea
Commit
aeb15dea
authored
Oct 09, 2016
by
Julian Rother
Browse files
Hide chapter list if not logged in
parent
1b16e796
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/lecture.html
View file @
aeb15dea
...
...
@@ -30,27 +30,29 @@
<div
class=
"col-xs-12"
style=
"padding: 0px"
>
{{ player(lecture, videos) }}
</div>
<div
class=
"col-xs-12"
style=
"padding-top: 10px;"
>
<p>
Kapitel:
</p>
<table
class=
"table table-hover"
>
<tr>
<th>
Index
</th>
<th>
Start
</th>
<th>
Kapitel
</th>
<th>
Sichtbar
</th>
<th></th>
</tr>
{% for c in chapters|sort(attribute='time') %}
<tr
onclick=
"videojs('videoplayer').currentTime({{c['time']}})"
>
<td>
{{ loop.index }}
</td>
<td>
{{ vtttime(c['time']) }}
</td>
<td>
{{ moderator_editor(['chapters',c.id,'text'],c['text']) }}
</td>
<td>
{{ moderator_checkbox(['chapters',c.id,'visible'], c.visible) }}
</td>
<td>
{{ moderator_delete(['chapters',c.id,'deleted']) }}
</td>
</tr>
{% endfor %}
</table>
</div>
{% if ismod() %}
<div
class=
"col-xs-12"
style=
"padding-top: 10px;"
>
<p>
Kapitel:
</p>
<table
class=
"table table-hover"
>
<tr>
<th>
Index
</th>
<th>
Start
</th>
<th>
Kapitel
</th>
<th>
Sichtbar
</th>
<th></th>
</tr>
{% for c in chapters|sort(attribute='time') %}
<tr
onclick=
"videojs('videoplayer').currentTime({{c['time']}})"
>
<td>
{{ loop.index }}
</td>
<td>
{{ vtttime(c['time']) }}
</td>
<td>
{{ moderator_editor(['chapters',c.id,'text'],c['text']) }}
</td>
<td>
{{ moderator_checkbox(['chapters',c.id,'visible'], c.visible) }}
</td>
<td>
{{ moderator_delete(['chapters',c.id,'deleted']) }}
</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</div>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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