Moved a div around
authorJef van Schendel <jefvanschendel@gmail.com>
Mon, 25 Jul 2011 20:19:22 +0000 (22:19 +0200)
committerJef van Schendel <jefvanschendel@gmail.com>
Mon, 25 Jul 2011 20:19:22 +0000 (22:19 +0200)
mediagoblin/templates/mediagoblin/user_pages/user.html

index 9d99ac53640e0e8f04657d4541f28fbb05f3ecf8..b445d8441e5d1560bf081d636d62f9f7eb2722d5 100644 (file)
 
 {% block mediagoblin_content -%}
   {% if user %}
-   <h1>{{ user.username }}'s profile</h1>
-   <div class="grid_6 alpha">
-     {% include "mediagoblin/utils/profile.html" %}
-     {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
+    <h1>{{ user.username }}'s profile</h1>
+    <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 }}">Edit profile</a>
-     {% endif %}
-   </div>
-   <div class="grid_10 omega">
-     {% set pagination_base_url = user_gallery_url %}
-     {% include "mediagoblin/utils/object_gallery.html" %}
-     <div class="clear"></div>
-     <p><a href="{{ user_gallery_url }}">View all of {{ user.username }}'s media</a></p>
+      {% endif %}
+    </div>
+    <div class="grid_10 omega">
+      {% set pagination_base_url = user_gallery_url %}
+      {% include "mediagoblin/utils/object_gallery.html" %}
+      <p><a href="{{ user_gallery_url }}">View all of {{ user.username }}'s media</a></p>
       <a href={{ request.urlgen(
                      'mediagoblin.user_pages.atom_feed',
                      user=user.username) }}>atom feed</a>
@@ -46,5 +45,6 @@
       {# This *should* not occur as the view makes sure we pass in a user. #}
       <p>Sorry, no such user found.<p/>
     </div>
+    <div class="clear"></div>
   {% endif %}
 {% endblock %}