From: Christopher Allan Webber Date: Fri, 19 Aug 2011 02:23:06 +0000 (-0500) Subject: More useful messages about when stuff isn't there on a user's homepage. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ddea95ea60c2ef61f771c64afb94357d3e005ec;p=mediagoblin.git More useful messages about when stuff isn't there on a user's homepage. --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index 00d25464..02e6fdc2 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -111,27 +111,50 @@ {% endif %} -
- {{ object_gallery(request, media_entries, pagination, - pagination_base_url=user_gallery_url, col_number=3) }} - {% include "mediagoblin/utils/object_gallery.html" %} -
-

- - {% trans username=user.username -%} - View all of {{ username }}'s media{% endtrans -%} + {% if media_entries.count() %} +

- + {%- trans %}Atom feed{% endtrans -%} +
+ {% else %} + {% if request.user['_id'] == user['_id'] %} +
+

+ {% trans -%} + This is where your media will appear, but you don't seem to have added anything yet. + {%- endtrans %} +

+ + {%- trans %}Add media{% endtrans -%} + +
+ {% else %} +
+

+ {% trans -%} + There doesn't seem to be any media here yet... + {%- endtrans %} +

+
+ {% endif %} + {% endif %}
{% endif %} {% endblock %}