Give a message if the user hasn't filled in their profile yet.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 02:16:50 +0000 (21:16 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 02:16:50 +0000 (21:16 -0500)
mediagoblin/templates/mediagoblin/user_pages/user.html

index 1a9a0f83dc965a554fcb7521835199349b34ed8d..00d25464a69f388a27deaa6e38a056cb7d85ef6f 100644 (file)
       {%- 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" %}