aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-31 15:22:54 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-31 15:22:54 -0500
commit77bc1c286778f7b0618f64c1d7498e7f6735d3c6 (patch)
treec04ac8f400d5eeca4fcb9fdc60441335e75f58c4
parent269943a645d16c51af0388c764c76721336369bc (diff)
downloadmediagoblin-77bc1c286778f7b0618f64c1d7498e7f6735d3c6.tar.lz
mediagoblin-77bc1c286778f7b0618f64c1d7498e7f6735d3c6.tar.xz
mediagoblin-77bc1c286778f7b0618f64c1d7498e7f6735d3c6.zip
Show the message about nothing exiting either if media_entries object not there or empty
-rw-r--r--mediagoblin/templates/mediagoblin/utils/object_gallery.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
index a14d7d7b..1b1c69f6 100644
--- a/mediagoblin/templates/mediagoblin/utils/object_gallery.html
+++ b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
@@ -19,7 +19,7 @@
{% from "mediagoblin/utils/pagination.html" import render_pagination %}
{% block object_gallery_content -%}
- {% if media_entries %}
+ {% if media_entries and media_entries.count() %}
{% for entry in media_entries %}
<div class="media_thumbnail">
<a href="{{ entry.url_for_self(request.urlgen) }}">
@@ -35,7 +35,7 @@
{% endif %}
{% else %}
<p>
- <i>There doesn't seem to be anything here...</i>
+ <i>There doesn't seem to be any media here yet...</i>
</p>
{% endif %}
{% endblock %}