Commit d63d7900 authored by Andreas Valder's avatar Andreas Valder

Merge branch '380-add-button-to-reencode-autoencoded-video' into 'master'

add button to reencode videos, closes #380

Closes #380

See merge request !26
parents 335a8333 ec62705c
......@@ -203,7 +203,17 @@ $(function() {
{% endif %}
<ul class="pull-right list-unstyled" style="margin-left:10px;">
{% for v in videos|sort(attribute='formats.prio', reverse=True) if (v.downloadable or ismod() ) %}
<li>{{moderator_delete(['videos',v.id,'deleted'])}} {{ moderator_checkbox(['videos',v.id,'visible'], v.visible) }} <a href="{{ config.VIDEOPREFIX }}/{{v.path}}">{{v.formats.description}} ({{v.file_size|filesizeformat(true)}})</a></li>
<li>
{{moderator_delete(['videos',v.id,'deleted'])}}
{{ moderator_checkbox(['videos',v.id,'visible'], v.visible) }}
<a href="{{ config.VIDEOPREFIX }}/{{v.path}}">{{v.formats.description}} ({{v.file_size|filesizeformat(true)}})</a>
{% if v.source %}
<a href="{{url_for('add_reencode_job', ref=request.url, videoid=v.id)}}" class="btn btn-default" data-toggle="tooltip" title="Video neu transcoden">
<span class="glyphicon glyphicon-refresh"></span>
</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% if not ismod() %}
......
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