diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-18 21:16:50 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-18 21:16:50 -0500 |
commit | 293a7fe4118151ff27153a324d27a554c6c0fc8b (patch) | |
tree | 400eac047b57254c414f697c0b503306b37f9256 | |
parent | 6890822cce835b132fb9e7bd2f7747de5bcb7716 (diff) | |
download | mediagoblin-293a7fe4118151ff27153a324d27a554c6c0fc8b.tar.lz mediagoblin-293a7fe4118151ff27153a324d27a554c6c0fc8b.tar.xz mediagoblin-293a7fe4118151ff27153a324d27a554c6c0fc8b.zip |
Give a message if the user hasn't filled in their profile yet.
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/user.html | 33 |
1 files 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 -%} </h1> - {% if request.user['_id'] == user['_id'] - and not user['url'] and not user['profile'] %} - <div class="grid_6 alpha empty_space"> - <p> - {% trans %}Here's a spot to tell others about yourself.{% endtrans %} - </p> - <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{ - user.username }}" - class="header_submit"> - {%- trans %}Edit profile{% endtrans -%} - </a> - </div> + {% if not user['url'] and not user['profile'] %} + {% if request.user['_id'] == user['_id'] %} + <div class="grid_6 alpha empty_space"> + <p> + {% trans %}Here's a spot to tell others about yourself.{% endtrans %} + </p> + <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{ + user.username }}" + class="header_submit"> + {%- trans %}Edit profile{% endtrans -%} + </a> + </div> + {% else %} + <div class="grid_6 alpha empty_space"> + <p> + {% trans -%} + This user hasn't filled in their profile (yet). + {%- endtrans %} + </p> + </div> + {% endif %} {% else %} <div class="grid_6 alpha"> {% include "mediagoblin/utils/profile.html" %} |