Added sidebar to profile page; moved some content
authorJef van Schendel <jefvanschendel@gmail.com>
Fri, 8 Jul 2011 13:22:15 +0000 (15:22 +0200)
committerJef van Schendel <jefvanschendel@gmail.com>
Fri, 8 Jul 2011 13:22:15 +0000 (15:22 +0200)
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/user_pages/user.html
mediagoblin/templates/mediagoblin/utils/profile.html

index 02fa3469caf2fb92e917a305f44aed7d0ff28d80..9dc6444bf60c7c8080b646f583709faa264e5baa 100644 (file)
@@ -257,11 +257,3 @@ ul.mediagoblin_messages {
   background-color: #f7f7f7;
   color:#272727;
 }
-
-/* profile stuff */
-
-.profile_content {
-  padding: 6px;
-  background-color: #393939;
-  margin-bottom: 10px;
-}
index aed330c809a8db770ea8ec96b1ef65fce51a7a90..97a882c6ace84bea32f4478622fea8a9c13d83f3 100644 (file)
@@ -28,6 +28,7 @@
   {% 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'] %}
@@ -40,6 +41,8 @@
         <a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a> 
       </p>
     {% endif %}
+    </div>
+    <div class="grid_10 omega">
 
     {% set pagination_base_url = user_gallery_url %}
     {% include "mediagoblin/utils/object_gallery.html" %}
@@ -55,4 +58,6 @@
     {# This *should* not occur as the view makes sure we pass in a user. #}
     <p>Sorry, no such user found.<p/>
   {% endif %}
+  
+    </div>
 {% endblock %}
index cd60bbfc1d2746acf89065e870f0c629537b9472..f44defa51c3e1726c937297b0ec5b8774cf98d4a 100644 (file)
 #}
 
 {% block profile_content -%}
-  {% if user.url or user.bio %}
-    <div class="profile_content">
-      {% if user.url %}
-        <div class="profile_homepage">
-          <a href="{{ user.url }}">{{ user.url }}</a>
-        </div>
-      {% endif %}
-    
-      {% if user.bio %}
-        <div class="profile_bio">
-          {{ user.bio }}
-        </div>
-      {% endif %}
-    </div>
+  {% if user.bio %}
+    <p>
+      {{ user.bio }}
+    </p>
   {% endif %}
-{% endblock %}    
+  {% if user.url %}
+    <p>
+      <a href="{{ user.url }}">{{ user.url }}</a>
+    </p>
+  {% endif %}
+{% endblock %}