{# 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.state in [UserState.INACTIVE, UserState.DELETED] %}
{% if user.state == UserState.INACTIVE %} {% trans %}Inactive{% endtrans %} {% else %} {% trans %}Deleted{% endtrans %} {% endif %}
{% endif %}
{% if user == current_user %} {% trans %}Edit profile{% endtrans %}
{% endif %} {% if user.image_name %} {% endif %}

{{ user.displayname }}

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


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

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

{% endif %}
{% set email_visible = current_user.is_sysadmin or user == current_user or not user.email_is_private %} {% set timestamp_visible = current_user.is_sysadmin or user == current_user %} {% if email_visible or timestamp_visible or user.orcid %}
{% if email_visible or user.orcid %}
{% snippet "accounts/snippets/view_user_email.html", user=user, identity=user.identity, email_visible=email_visible %} {% if user.orcid %} {% endif %}
{% endif %} {% if timestamp_visible %}
{% if user == current_user %} {% endif %} {% trans %}Member since{% endtrans %} ()
{% endif %}
{% endif %}
{% if user.identities.count() > 1 %} {% endif %}
{% endblock %}