Skip to content
Snippets Groups Projects
Commit 120e3e71 authored by Roman Karwacik's avatar Roman Karwacik
Browse files

Merge branch 'downloadAttribute' into 'master'

Add download attribute to video_download_btn macro

See merge request !39
parents be7f82cb 3dac91ef
Branches
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment