From: Christopher Allan Webber Date: Fri, 19 Aug 2011 00:17:14 +0000 (-0500) Subject: From Jef van Schendel: "here's a spot to tell others about yourself" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3617ff4acf108bc1d90c6181e51c67dcb4fc44f0;p=mediagoblin.git 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. --- 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,