Commit c5ef9056 authored by Andreas Valder's avatar Andreas Valder

fixed chapter marks, now editable, closes #22

parent 6abee6fa
......@@ -2,13 +2,14 @@
WEBVTT
{% for c in chapters|sort(attribute='start') %}
{{ loop.index }}
{# time format is 'minutes:seconds.ms' we expect full seconds #}
{{ vtttime(c['start']) }} --> {{ vtttime(c['end']) }}
{{ c['text'] }}
{% else $}
{% else %}
00:00:00.000 --> 23:59:59.999
Video
{% endfor %}
{% from 'macros.html' import player %}
{% from 'macros.html' import video_download_btn %}
{% from 'macros.html' import video_embed_btn %}
{% from 'macros.html' import vtttime %}
{% from 'macros.html' import valueeditor %}
{% from 'macros.html' import valuedeletebtn %}
{% from 'macros.html' import valuecheckbox %}
{% set page_border = 0 -%}
{% extends "base.html" %}
......@@ -27,6 +31,25 @@
{{ 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='start') %}
<tr onclick=" $('.player video')[0].setCurrentTime({{c['time']}})">
<td>{{ loop.index }}</td>
<td>{{ vtttime(c['time']) }}</td>
<td>{{ valueeditor(['chapters',c.id,'text'],c['text']) }}</td>
<td>{{ valuecheckbox(['chapters',c.id,'visible'], c.visible) }}</td>
<td>{{ valuedeletebtn(['chapters',c.id,'deleted']) }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
......
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