{# vim: set ts=2 et sts=2 sw=2: #} {% extends "users/base.html" %} {% set title = _('{user} | Profile')|f(user=profile.user.username) %} {% set classes = 'profile' %} {% set canonical_url = unlocalized_url('users.profile', profile.user.pk) %} {% set active = 'my-profile' %} {% block content %}
{% if user.is_staff and user.has_perm('users.change_profile') %} {% endif %} {% if request.user.is_authenticated and request.user != profile.user %}
{{ csrf() }}
{% endif %}

{{ display_name(profile.user) }} {% if profile.name %} ({{ profile.user.username }}) {% endif %}

{% if profile.city and profile.country %} {{ _('{city}, {country}')|f(city=profile.city, country=profile.country) }} {% elif profile.city %} {{ profile.city }} {% elif profile.country %} {{ profile.country }} {% endif %}

{{ private_message(profile.user) }} {% if profile.public_email or profile.website or profile.twitter or profile.facebook or profile.irc_handle or (profile.livechat_id and profile.livechat_id|lower != profile.user.username|lower) %}
    {% if profile.public_email and request.user.is_authenticated() %}
  • {{ profile.user.email|public_email }}
  • {% endif %} {% if profile.website %}
  • {{ profile.website }}
  • {% endif %} {% if profile.twitter %}
  • {{ profile.twitter }}
  • {% endif %} {% if profile.facebook %}
  • {{ profile.facebook }}
  • {% endif %} {% if profile.irc_handle %}
  • {{ profile.irc_handle }}
  • {% endif %} {% if profile.livechat_id and profile.livechat_id|lower != profile.user.username|lower %}
  • {{ _('Livechat ID: {livechat_id}')|f(livechat_id=profile.livechat_id) }}
  • {% endif %}
{% endif %} {% if profile.bio %}

{{ _('About {user}')|f(user=display_name(profile.user)) }}

{{ profile.bio|wiki_to_html(nofollow=True) }}
{% endif %} {% if groups %}

{{ _("{user}'s Groups")|f(user=display_name(profile.user)) }}

    {% for g in groups %}
  • {{ group_link(g) }}
  • {% endfor %}
{% endif %}
{% endblock %}