From 0ddea95ea60c2ef61f771c64afb94357d3e005ec Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 18 Aug 2011 21:23:06 -0500 Subject: [PATCH] More useful messages about when stuff isn't there on a user's homepage. --- .../mediagoblin/user_pages/user.html | 63 +++++++++++++------ 1 file changed, 43 insertions(+), 20 deletions(-) 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 %} -- 2.25.1