From: Christopher Allan Webber Date: Fri, 19 Aug 2011 02:16:50 +0000 (-0500) Subject: Give a message if the user hasn't filled in their profile yet. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=293a7fe4118151ff27153a324d27a554c6c0fc8b;p=mediagoblin.git Give a message if the user hasn't filled in their profile yet. --- 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" %}