From 293a7fe4118151ff27153a324d27a554c6c0fc8b Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 18 Aug 2011 21:16:50 -0500 Subject: [PATCH] Give a message if the user hasn't filled in their profile yet. --- .../mediagoblin/user_pages/user.html | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index 1a9a0f83..00d25464 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -78,18 +78,27 @@ {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%} - {% 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 %} -

- - {%- trans %}Edit profile{% endtrans -%} - -
+ {% if not user['url'] and not user['profile'] %} + {% if request.user['_id'] == user['_id'] %} +
+

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

+ + {%- trans %}Edit profile{% endtrans -%} + +
+ {% else %} +
+

+ {% trans -%} + This user hasn't filled in their profile (yet). + {%- endtrans %} +

+
+ {% endif %} {% else %}
{% include "mediagoblin/utils/profile.html" %} -- 2.25.1