From 3617ff4acf108bc1d90c6181e51c67dcb4fc44f0 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 18 Aug 2011 19:17:14 -0500 Subject: [PATCH] From Jef van Schendel: "here's a spot to tell others about yourself" This should display if the user is logged in and they don't have anything in their profile yet. --- .../mediagoblin/user_pages/user.html | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index ce6415d7..f189ed94 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -78,15 +78,29 @@ {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%} -
- {% include "mediagoblin/utils/profile.html" %} - {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} + {% if request.user['_id'] == user['_id'] + and not user['url'] and not user['profile'] %} +
+

+ {% trans %}Here's a spot to tell others about yourself.{% endtrans %} +

+ user.username }}" + class="header_submit"> {%- trans %}Edit profile{% endtrans -%} - {% endif %} -
+
+ {% else %} +
+ {% include "mediagoblin/utils/profile.html" %} + {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} + + {%- trans %}Edit profile{% endtrans -%} + + {% endif %} +
+ {% endif %}
{{ object_gallery(request, media_entries, pagination, -- 2.25.1