{% extends "users/base.html" %} {% from "wiki/includes/flag_form.html" import flag_form with context %} {% from "kbadge/includes/macros.html" import awards_list with context %} {% set title = _('{user} | Profile')|f(user=display_name(profile.user)) %} {% set classes = 'profile' %} {% set canonical_url = canonicalize(viewname='users.profile', username=profile.user.username) %} {% set active = 'my-profile' %} {% set is_owner = profile and request.user == profile.user %} {% block breadcrumbs %}{% endblock %} {% block content %}
{% if is_owner and profile.is_fxa_migrated %}

{{ _('Your Account') }}

{{ user.email }}

{% trans a_open=''|safe, a_close=''|safe %} To change your email or avatar, visit the Mozilla account page. {{ a_open }} Learn more. {{ a_close }} {% endtrans %}


{% endif %} {% if request.user.is_authenticated and request.user != profile.user and not profile.is_system_account %} {% if user.has_perm('users.change_profile') %}
{{ _('Edit user profile') }}
{% endif %} {% if not profile.is_system_account %} {{ flag_form(url('users.flag', object_id=profile.pk), profile.id, False) }} {% endif %} {% endif %}

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

{% if is_owner %} {% trans a_open=''|safe, a_close=''|safe %} Your privacy is important to us. Your username is always visible to the public - you can always {{ a_open }} edit your username {{ a_close }} if you would like to do so. {% endtrans %} {% endif %}

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

{% if not is_owner %}
{% endif %}
{% if profile.public_email or profile.website or profile.twitter or profile.community_mozilla_org or profile.people_mozilla_org or profile.matrix_handle %}
    {% 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.community_mozilla_org %}
  • {{ profile.community_mozilla_org }}
  • {% endif %} {% if profile.people_mozilla_org %}
  • {{ profile.people_mozilla_org }}
  • {% endif %} {% if profile.matrix_handle %}
  • {{ profile.matrix_handle }}
  • {% endif %}
{% endif %}
{% if user.id != profile.user.id and user.has_perm('users.deactivate_users') and not profile.is_system_account %} {% if profile.user.is_active %}
{% csrf_token %}
{% csrf_token %}
{% else %}
{{ _('This user has been deactivated.') }}
{% endif %} {% endif %} {% if num_answers or num_questions or num_solutions or num_documents or profile.involved_from %}

{{ _('Contributions') }}

{% endif %} {% if profile.bio %}

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

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

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

{% endif %} {% if awards %}

{{ _('Badges') }}

{{ awards_list(awards) }}

{{ _('See all available SUMO badges') }}

{% endif %} {% if not profile.is_system_account %}
{% if profile.user == user %}
{% csrf_token %}
{{ _('Sign Out') }} {% else %} {{ private_message(profile.user) }} {% endif %}
{% endif %}
{% endblock %}