{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "accounts/view_user_base.html" %} {% block content %}
{% include "accounts/snippets/view_user_menu.html" %}
{% if user.image_name %} {% endif %} {% if user.state in ["inactive", "deleted"] %}
{% if user.state == "inactive" %} {% trans %}Inactive{% endtrans %} {% else %} {% trans %}Deleted{% endtrans %} {% endif %}

{% endif %}

{{ user.identity.displayname }}

@{{ user.identity.username }} ({% trans %}Account type:{% endtrans %} {{ user.identity.Meta.identity_type["name"] }})
{% trans %}Persistent ID:{% endtrans %} {{ user.id }}

{% if user == current_user or not user.email_is_private %}

{% if user.email_is_private %} {% endif %} {{ user.identity.email }} {% if user.email_confirmed %} {% trans %}Confirmed{% endtrans %} {% endif %}

{% endif %}
{% if user.about %} {% else %}

{% trans %}No information provided.{% endtrans %}

{% endif %}

{% if user == current_user %} {% endif %} {% if user == current_user %}
{% else %}
{% endif %} {% trans %}Member since{% endtrans %} ()
{% if user.identities.count() > 1 %}
{% trans %}Also known as:{% endtrans %}
    {% for identity in user.identities %} {% if identity != user.identity %}
  • {{ identity.displayname }}
    @{{ identity.username }}
    {% trans %}Account type:{% endtrans %} {{ identity.Meta.identity_type["name"] }}
  • {% endif %} {% endfor %}
{% endif %}
{% endblock %}