aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-18 19:17:14 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-18 19:17:14 -0500
commit3617ff4acf108bc1d90c6181e51c67dcb4fc44f0 (patch)
tree8ab6113cd66bf3e0c48ff4b163c699887a61ef5d
parent1d03221d0448903aad17180b0fac0ee73c32204b (diff)
downloadmediagoblin-3617ff4acf108bc1d90c6181e51c67dcb4fc44f0.tar.lz
mediagoblin-3617ff4acf108bc1d90c6181e51c67dcb4fc44f0.tar.xz
mediagoblin-3617ff4acf108bc1d90c6181e51c67dcb4fc44f0.zip
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.
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/user.html26
1 files 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 -%}
</h1>
- <div class="grid_6 alpha">
- {% 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'] %}
+ <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 }}">
+ user.username }}"
+ class="header_submit">
{%- trans %}Edit profile{% endtrans -%}
</a>
- {% endif %}
- </div>
+ </div>
+ {% else %}
+ <div class="grid_6 alpha">
+ {% include "mediagoblin/utils/profile.html" %}
+ {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
+ <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
+ user.username }}">
+ {%- trans %}Edit profile{% endtrans -%}
+ </a>
+ {% endif %}
+ </div>
+ {% endif %}
<div class="grid_10 omega">
{{ object_gallery(request, media_entries, pagination,