From ec62705cdffcdbc89d01a75df436e8a87581cebf Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Thu, 12 Mar 2020 14:30:04 +0100 Subject: [PATCH] add button to reencode videos, closes !380 --- templates/macros.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/macros.html b/templates/macros.html index 0d31cfd..786fb87 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -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() %} -- GitLab