From Jef van Schendel: "here's a spot to tell others about yourself"
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 00:17:14 +0000 (19:17 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 00:17:14 +0000 (19:17 -0500)
This should display if the user is logged in and they don't have anything in their profile yet.

mediagoblin/templates/mediagoblin/user_pages/user.html

index ce6415d799157eaa8c45e73b3ab489da98889836..f189ed94a00c4c6a40ffa98a57d4362c398f57b4 100644 (file)
       {%- 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,