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:
Christopher Allan Webber 2011-12-04 10:24:42 -06:00
parent 21e8432956
commit f80f5b58a8

View File

@ -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 %}