{% extends 'administration/base.html.twig' %} {% block title %}{{ 'admin.profile'|trans }}{% endblock %} {% block body %}
{% if user.profileImage %} {{ user.username }} {% else %}
{{ user.username|upper|slice(0, 2) }}
{% endif %}

{{ user.username }}

{{ user.email }}

{{ 'admin.roles'|trans }}: {{ user.roles|join(', ') }}

{{ 'admin.profile_information'|trans }}
  • {{ 'admin.name'|trans }}: {{ user.username }}
  • {{ 'admin.email'|trans }}: {{ user.email }}
  • {{ 'admin.roles'|trans }}: {{ user.roles|join(', ') }}
{{ 'admin.profile_oauth.title'|trans }}

{{ 'admin.profile_oauth.intro'|trans }}

{% if user_oauth_links is defined and user_oauth_links|length > 0 %}
    {% for link in user_oauth_links %}
  • {{ link.providerSlug }} {% if link.providerEmail %} ({{ link.providerEmail }}) {% endif %}
  • {% endfor %}
{% else %}

{{ 'admin.profile_oauth.none'|trans }}

{% endif %} {% if oauth_providers_linkable is defined and oauth_providers_linkable|length > 0 %}

{{ 'admin.profile_oauth.add_connection'|trans }}

{% for p in oauth_providers_linkable %} {% if p.iconClass %}{% endif %} {{ p.displayName }} {% endfor %}
{% endif %}
{# ——— Ausgehend: Apps die auf dieses Konto zugreifen (OAuth-Server-Grants) ——— #} {% if oauth_server_grants is defined and oauth_server_grants|length > 0 %}
{{ 'admin.profile_oauth_server.title'|trans }}

{{ 'admin.profile_oauth_server.intro'|trans }}

    {% for grant in oauth_server_grants %} {% set cid = grant.clientIdentifier %}
  • {{ oauth_server_client_names[cid]|default(cid) }} ({{ cid }})
  • {% endfor %}
{% endif %}
{% endblock %}