]> git.parisson.com Git - teleforma.git/commitdiff
fix download URL
authoryomguy <yomguy@parisson.com>
Sun, 22 Jul 2012 22:30:10 +0000 (00:30 +0200)
committeryomguy <yomguy@parisson.com>
Sun, 22 Jul 2012 22:30:10 +0000 (00:30 +0200)
teleforma/templates/teleforma/course_media.html

index 0b5155d496f31fa49a7a067b7f642bc26e690d77..5d41afb2e99458f9c671dbbfc8739d1de491cd8c 100644 (file)
@@ -22,7 +22,7 @@ $(document).ready(function(){
 {% block module-action %}
 {% if media.item.file %}
 <div class="module_action">
-<a href="{% url teleforma-media-download media.id %}" 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>
+<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>
 {% endif %}
 {% endblock module-action %}