]> git.parisson.com Git - teleforma.git/commitdiff
force download in href
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 2 Dec 2020 22:51:37 +0000 (23:51 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 2 Dec 2020 22:52:01 +0000 (23:52 +0100)
teleforma/templates/teleforma/course_media.html

index 03e348d6106b3cc7853b6da76f22a44b830dee54..1841ecd55048c37aedabe15ef54aedb2b7e5c715 100644 (file)
@@ -61,7 +61,7 @@ $(document).ready(function(){
 {% if media.item.file and media.is_published or user.is_superuser or user.is_staff %}
  {% if not "video" in media.mime_type or perms.telemeta.can_play_all_items or request.user_agent.os.family == 'iOS' %}
   <div class="module_action">
-   <a href="{{ MEDIA_URL }}{{ media.item.file }}" class="component_icon button" id="action_red"><img src="/static/teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
+   <a href="{{ MEDIA_URL }}{{ media.item.file }}" class="component_icon button" id="action_red" download><img src="/static/teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
   </div>
  {% endif %}
 {% endif %}