{% extends "base.html" %} {% block main %} {% import phonenumbers %}
{% if account.description %}
{% module Markdown(account.description) %}
{% end %} {% if current_user == account or current_user.is_staff() %}
{% if account.address %}
{{ _("Postal Address") }}
{{ account.name }}
{% for line in account.address %} {{ line }}
{% end %}
{% end %}
{% if account.phone_number or account.fax_number %}
{{ _("Phone Numbers") }}
{% end %} {% if account.phone_numbers %}
{{ _("External Phone Numbers") }}
    {% for number in account.phone_numbers %}
  • {% if phonenumbers.number_type(number) == phonenumbers.PhoneNumberType.MOBILE %} {% else %} {% end %} {{ format_phone_number(number) }}
  • {% end %}
{% end %}
{% end %}
{% if current_user.is_staff() and account.groups %}
{{ _("Groups") }}
{% for g in account.groups %} {{ g }} {% end %}
{% end %}
{% end block %}