]> git.parisson.com Git - teleforma.git/commitdiff
fix media download url
authoryomguy <yomguy@parisson.com>
Sun, 22 Jul 2012 23:04:36 +0000 (01:04 +0200)
committeryomguy <yomguy@parisson.com>
Sun, 22 Jul 2012 23:04:36 +0000 (01:04 +0200)
teleforma/templates/teleforma/inc/media_list.html

index 8ebb75b1a2aacc535dc28e7f0b87a02ac0e229ea..6553bfe95556b0f72e55b0c34038ba4acd59bd69 100644 (file)
@@ -36,7 +36,7 @@
                     </dl>
                  </div>
             </td>
-            <td {% if forloop.first %}class="border-top"{% endif %} width="10%" align="center">{% if media.item.file %}<a href="{% url teleforma-media-download media.id %}"><img src="{{ STATIC_URL }}teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
+            <td {% if forloop.first %}class="border-top"{% endif %} width="10%" align="center">{% if media.item.file %}<a href="{{ MEDIA_URL }}{{ media.item.file }}"><img src="{{ STATIC_URL }}teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
             </tr>
           {% endif %}
          {% endif %}