Don't show link to original when the file is an image
This commit is contained in:
parent
8567c0479f
commit
a04bbd9dea
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user