Removing the conditional that checks if there's a media in media.html
If there isn't a media, we shouldn't hit that template! The view should ensure that.
This commit is contained in:
parent
21e8432956
commit
f80f5b58a8
@ -23,7 +23,6 @@
|
||||
{% block title %}{{ media.title }} — {{ super() }}{% endblock %}
|
||||
|
||||
{% block mediagoblin_content %}
|
||||
{% if media %}
|
||||
<div class="grid_11 alpha">
|
||||
<div class="media_image_container">
|
||||
{% block mediagoblin_media %}
|
||||
@ -159,7 +158,4 @@
|
||||
{% include "mediagoblin/utils/tags.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{% trans %}Sorry, no such media found.{% endtrans %}<p/>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user