{% if profile.photo_url %}
{% elif profile.photo %}
{% elif profile.email %}
{% else %}
{{ profile.name|initial }}
{% endif %}
{{ profile.name }}
ID пользователя: {{ profile.id }}
{% if profile.email %}
Email: {{ profile.email }}
{% endif %}
{% if profile.role %}
Роль: {{ profile.role }}
{% endif %}
Данные аккаунта
- Имя
- {{ profile.name|default:"—" }}
- {{ profile.email|default:"—" }}
- Роль
- {{ profile.role|default:"—" }}
- Статус
- {% if profile.verified %}ACTIVE{% else %}INACTIVE{% endif %}
- ID пользователя
{{ profile.id|default:"—" }}
Данные профиля
- Пол
- {{ profile.gender|default:"—" }}
- Город
- {{ profile.city|default:"—" }}
- Языки
-
{% if profile.languages %}
{% for lang in profile.languages %}{{ lang }}{% endfor %}{% else %} — {% endif %}
- Интересы
-
{% if profile.interests %}
{% for it in profile.interests %}{{ it }}{% endfor %}{% else %} — {% endif %}
- О себе
- {{ profile.about|default:"—" }}
- Возраст
- {{ profile.age|default:"—" }}
- ID профиля
{{ profile.profile_id|default:profile.id|default:"—" }}- ID пользователя (в профиле)
{{ profile.user_id|default:"—" }}- Фото (URL)
-
{% if profile.photo_url %}
{{ profile.photo_url }}{% elif profile.photo %}{{ profile.photo }}{% else %} — {% endif %}
Поля профиля основаны на контракте ProfileOut (gender, city, languages, interests, id, user_id).
Если это чужой пользователь, сервер может не возвращать профиль, поэтому часть значений будет пустой. :contentReference[oaicite:1]{index=1}