{% 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'] %}
<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" %}
{# This *should* not occur as the view makes sure we pass in a user. #}
<p>Sorry, no such user found.<p/>
{% endif %}
+
+ </div>
{% endblock %}
#}
{% 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 %}