]> git.parisson.com Git - teleforma.git/commitdiff
try other download button
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 14:05:35 +0000 (16:05 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 14:05:35 +0000 (16:05 +0200)
teleforma/templates/teleforma/course_media.html

index 46b8cde96389f7e754e46ada5d71341291666708..9edbb311ca338f6587ee4deb37450e05a8d50ea8 100644 (file)
@@ -18,6 +18,12 @@ $(document).ready(function(){
 
 {% endblock extra_javascript %}
 
+{% block module-action %}
+{% if media.item.file %}
+<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>
+{% endif %}
+{% endblock module-action %}
+
 {% block course %}
 <div class="course_media">
 
@@ -68,11 +74,6 @@ $(document).ready(function(){
 </dl>
 </div>
 
-<br /><br />
-{% if media.item.file %}
-<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>
-{% endif %}
-
 {% endblock general_info %}
 
 </div>