]> git.parisson.com Git - teleforma.git/commitdiff
remove video download
authoryomguy <yomguy@parisson.com>
Thu, 7 Feb 2013 10:09:57 +0000 (11:09 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 7 Feb 2013 10:09:57 +0000 (11:09 +0100)
teleforma/templates/teleforma/course_media.html

index e29a721d47a6394ff105de16770bb0c6ad88d988..366555464d108aa354be3462cfc2c11d3305c156 100644 (file)
@@ -57,7 +57,7 @@ $(document).ready(function(){
 {% endblock extra_javascript %}
 
 {% block module-action %}
-{% if media.item.file and media.is_published %}
+{% if media.item.file and media.is_published and not "video" in media.mime_type %}
 <div class="module_action">
 <a href="{{ MEDIA_URL }}{{ media.item.file }}" class="component_icon button" id="action_red"><img src="{{STATIC_URL}}teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
 </div>