Don't show link to original when the file is an image
authorJef van Schendel <mail@jefvanschendel.nl>
Tue, 23 Oct 2012 13:47:05 +0000 (15:47 +0200)
committerJef van Schendel <mail@jefvanschendel.nl>
Tue, 23 Oct 2012 13:47:05 +0000 (15:47 +0200)
mediagoblin/templates/mediagoblin/media_displays/image.html

index 86725cca6f2c56d4a2ba71cafd15a5c73c108f46..30c2a90dfeb4c1251e1e84f5b547c40c33b632ad 100644 (file)
 {% extends 'mediagoblin/user_pages/media.html' %}
 
 {% block mediagoblin_sidebar %}
-  {% if 'original' in media.media_files %}
-  <h3>{% trans %}Download{% endtrans %}</h3>
-  <p>
-    <a href="{{ request.app.public_store.file_url(
-            media.media_files['original']) }}">
-      {%- trans -%}
-        Original
-      {%- endtrans -%}
-    </a>
-  </p>
-  {% endif %}    
 {% endblock %}