]> git.parisson.com Git - teleforma.git/commitdiff
add download button
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 13:41:32 +0000 (15:41 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 13:41:32 +0000 (15:41 +0200)
teleforma/templates/teleforma/course_media.html

index 28c3161540f0c7bc7998bbb08938dc4b7560087c..ae7415230e92b74ed26ab7cf53c392c7ba8884f2 100644 (file)
@@ -67,6 +67,11 @@ $(document).ready(function(){
 <dt>{% trans "Mime type" %}</dt><dd>{{ mime_type }}</dd>
 </dl>
 </div>
+
+{% if media.item.file %}
+<a href="{% url teleforma-media-download media.id %}" class="component_icon button icon_download">{% trans "Download" %}</a>
+{% endif %}
+
 {% endblock general_info %}
 
 </div>