From: Christopher Allan Webber Date: Sun, 31 Jul 2011 20:22:54 +0000 (-0500) Subject: Show the message about nothing exiting either if media_entries object not there or... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=77bc1c286778f7b0618f64c1d7498e7f6735d3c6;p=mediagoblin.git Show the message about nothing exiting either if media_entries object not there or empty --- 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 %}
@@ -35,7 +35,7 @@ {% endif %} {% else %}

- There doesn't seem to be anything here... + There doesn't seem to be any media here yet...

{% endif %} {% endblock %}