{% load i18n %} {% load markdown %} {% load humanize %}

{% trans "Profile" %}

{% include 'user/user_preview.html' with user=user admin_mode=True %} {% if user.summary %}
{{ user.summary|to_markdown|safe }}
{% endif %}

{% trans "View user profile" %}

{% url 'settings-user' user.id as url %} {% if not request.path == url %}

{% trans "Go to user admin" %}

{% endif %}

{% trans "Status" %}

{% include "snippets/user_active_tag.html" with large=True %}

{% if user.local %} {% trans "Local" %} {% else %} {% trans "Remote" %} {% endif %}

{% trans "User details" %}

{% if user.local %}
{% trans "Email:" %}
{{ user.email }}
{% endif %} {% with report_count=user.report_set.count %}
{% trans "Reports:" %}
{{ report_count|intcomma }} {% if report_count > 0 %} {% trans "(View reports)" %} {% endif %}
{% endwith %}
{% trans "Blocked by count:" %}
{{ user.blocked_by.count }}
{% trans "Date added:" %}
{{ user.created_date }}
{% trans "Last active date:" %}
{{ user.last_active_date }}
{% trans "Manually approved followers:" %}
{{ user.manually_approves_followers|yesno }}
{% trans "Discoverable:" %}
{{ user.discoverable|yesno }}
{% if not user.is_active %}
{% trans "Deactivation reason:" %}
{{ user.get_deactivation_reason_display }}
{% endif %} {% if not user.is_active and user.deactivation_reason == "pending" %}
{% trans "Confirmation code:" %}
{{ user.confirmation_code }}
{% endif %}
{% if not user.local %} {% with server=user.federated_server %}

{% trans "Instance details" %}

{% if server %}
{{ server.server_name }}
{% trans "Software:" %}
{{ server.application_type }}
{% trans "Version:" %}
{{ server.application_version }}
{% trans "Status:" %}
{{ server.get_status_display }}
{% if server.notes %}
{% trans "Notes" %}
{{ server.notes }}
{% endif %}

{% trans "View instance" %}

{% else %} {% trans "Not set" %} {% endif %}
{% endwith %} {% endif %}