Commit aeb15dea authored by Julian Rother's avatar Julian Rother
Browse files

Hide chapter list if not logged in

parent 1b16e796
......@@ -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>
......
Supports Markdown
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