diff --git a/templates/macros.html b/templates/macros.html index c442d9db6b5ade8e5ed4e5fd5c16db9ff25491d7..fc101573a984ee6f76d66cbc72485eec7adf2627 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -194,7 +194,7 @@ $(function() { <button class="btn btn-default dropdown-toggle{% if not videos|selectattr('downloadable')|list and not ismod() %} disabled{% endif %}" type="button" data-toggle="dropdown">Download <span class="caret"></span></button> <ul class="dropdown-menu"> {% for v in videos|sort(attribute='formats.prio', reverse=True) if (v.downloadable or ismod() ) %} - <li><a href="{{ config.VIDEOPREFIX }}/{{v.path}}">{{v.formats.description}} ({{v.file_size|filesizeformat(true)}})</a></li> + <li><a href="{{ config.VIDEOPREFIX }}/{{v.path}}" download>{{v.formats.description}} ({{v.file_size|filesizeformat(true)}})</a></li> {% endfor %} </ul> {% endif %} @@ -206,7 +206,7 @@ $(function() { <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> + <a href="{{ config.VIDEOPREFIX }}/{{v.path}}" download>{{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>