{#
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
+{% block mediagoblin_head %}
+ {% template_hook("location_head") %}
+{% endblock mediagoblin_head %}
+
{% 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>
+ {% if user.bio %}
+ {% autoescape False %}
+ {{ user.bio_html }}
+ {% endautoescape %}
+ {% endif %}
+ {% if user.url %}
+ <p>
+ <a href="{{ user.url }}">{{ user.url }}</a>
+ </p>
+ {% endif %}
+ {% if user.location %}
+ {%- set model = user %}
+ <h3>{% trans %}Location{% endtrans %}</h3>
+ {% if model.get_location.name %}
+ <p>{{ model.get_location.name }}</p>
{% endif %}
- </div>
+ {% template_hook("location_info") %}
{% endif %}
-{% endblock %}
+{% endblock %}