Don't show link to original when the file is an image

This commit is contained in:
Jef van Schendel 2012-10-23 15:47:05 +02:00
parent 8567c0479f
commit a04bbd9dea

View File

@ -19,15 +19,4 @@
{% 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 %}