{% extends "base5.html" %} {% load authnames crispy_forms_tags humanize i18n icons metrics permissions translations urlformat %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block content %} {% with billings=page_user.billing_set.prefetch %} {% perm 'user.edit' as can_edit_user %}
{% translate

{{ page_user }}

@{{ page_user.username }} {% blocktranslate with date=page_user.date_joined|date:"DATE_FORMAT" %}Joined on {{ date }}{% endblocktranslate %} {% if can_edit_user or page_user == user %} {% if page_user.last_login %} {% blocktranslate with date=page_user.last_login|date:"DATE_FORMAT" %}Last sign-in on {{ date }}{% endblocktranslate %} {% else %} {% translate "Never signed-in" %} {% endif %} {% if page_user.date_expires %} {% blocktranslate with date=page_user.date_expires|date:"DATE_FORMAT" %}Account expires on {{ date }}{% endblocktranslate %} {% endif %} {% endif %} {% if page_profile.company %} {% icon "domain.svg" %} {{ page_profile.company }} {% endif %} {% if page_profile.location %} {% icon "map-marker.svg" %} {{ page_profile.location }} {% endif %}

{% if page_profile.translated or page_profile.suggested or page_profile.uploaded %}

{% if page_profile.translated %} {% blocktranslate count cnt=page_profile.translated with count=page_profile.translated|intcomma %}{{ count }} translation{% plural %}{{ count }} translations{% endblocktranslate %} {% endif %} {% if page_profile.suggested %} {% blocktranslate count cnt=page_profile.suggested with count=page_profile.suggested|intcomma %}{{ count }} suggestion{% plural %}{{ count }} suggestions{% endblocktranslate %} {% endif %} {% with pending_suggestions=page_user.suggestion_set.count %} {% if pending_suggestions %} {% blocktranslate count cnt=pending_suggestions with count=pending_suggestions|intcomma %}{{ count }} pending suggestion{% plural %}{{ count }} pending suggestions{% endblocktranslate %} {% endif %} {% endwith %} {% if page_profile.uploaded %} {% blocktranslate count cnt=page_profile.uploaded with count=page_profile.uploaded|intcomma %}{{ count }} screenshot{% plural %}{{ count }} screenshots{% endblocktranslate %} {% endif %} {% if page_profile.commented %} {% blocktranslate count cnt=page_profile.commented with count=page_profile.commented|intcomma %}{{ count }} comment{% plural %}{{ count }} comments{% endblocktranslate %} {% endif %}

{% endif %} {% if can_edit_user or page_profile.website or page_profile.public_email or page_profile.contact or page_profile.github or page_profile.twitter or page_profile.linkedin or page_profile.liberapay or page_profile.fediverse or page_profile.codesite %}

{% if page_profile.website %} {% icon "link.svg" %} {{ page_profile.website|urlformat }} {% endif %} {% if page_profile.contact %} {% icon "chat.svg" %} {{ page_profile.contact|urlformat }} {% endif %} {% if page_profile.public_email %} {% icon "email.svg" %} {{ page_profile.public_email }} {% endif %} {% if can_edit_user and page_user.email != page_profile.public_email %} {% icon "email.svg" %} {{ page_user.email }} {% endif %} {% if page_profile.liberapay %} {% icon "liberapay.svg" %} {{ page_profile.liberapay }} {% endif %} {% if page_profile.fediverse %} {% icon "fediverse.svg" %} {{ page_profile.fediverse|urlformat }} {% endif %} {% if page_profile.github %} {% icon "github.svg" %} {{ page_profile.github }} {% endif %} {% if page_profile.codesite %} {% icon "source.svg" %} {{ page_profile.codesite|urlformat }} {% endif %} {% if page_profile.twitter %} {% icon "twitter.svg" %} {{ page_profile.twitter }} {% endif %} {% if page_profile.linkedin %} {% icon "linkedin.svg" %} {{ page_profile.linkedin }} {% endif %}

{% endif %} {% if user_languages %}

{% for language in user_languages %} {{ language }} {% endfor %}

{% endif %}
{% include "snippets/list-objects.html" with objects=page_user_translations label=_("Translation") show_admin_badge=True name_source="translation" empty_message=_("No recent contributions found.") %} {% translate "Browse all translations with contribution" %}
{% include "list-projects.html" with projects=page_owned_projects %} {% if page_owned_projects_more %} {% translate "Browse all managed projects" %} {% endif %}
{% include "list-projects.html" with projects=page_watched_projects %} {% if page_watched_projects_more %} {% translate "Browse all watched projects" %} {% endif %}
{% include "snippets/activity.html" with metrics=page_user|metrics %}
{% format_last_changes_content last_changes=last_changes user=user bootstrap_5=True %} {% translate "Browse all changes made by this user" %}
{% if can_edit_user %}
{% for social in page_user.social_auth.all %} {% endfor %}
{% translate "Identity" %} {% translate "User ID" %} {% translate "E-mail" %}
{% auth_name social.provider ' ' %} {{ social.uid }} {% for verified in social.verifiedemail_set.all %} {{ verified.email }} {% if not loop.last %},{% endif %} {% endfor %}
{% for subscription in page_user.subscription_set.prefetch.order %} {% endfor %}
{% translate "Notification" %} {% translate "Scope" %} {% translate "Frequency" %} {% translate "Project" %} {% translate "Component" %} {% translate "One-time" %}
{{ subscription.notification }} {{ subscription.get_scope_display }} {{ subscription.get_frequency_display }} {{ subscription.project }} {{ subscription.component }} {{ subscription.onetime }}
{% if billings %}
{% include "billing/list.html" with objects=billings show_expiry=1 show_removal=1 %}
{% endif %}
{% for log in page_user.auditlog_set.order %} {% endfor %}
{% translate "When" %} {% translate "Account activity" %} {% translate "IP address" %} {% translate "User agent" %}
{{ log.timestamp|date:"DATETIME_FORMAT" }} {{ log.get_message }} {{ log.address }} {{ log.user_agent }}
{% for group in page_user_groups %} {% if group.defining_project %} {% else %} {% endif %} {% endfor %} {% for userblock in page_user.userblock_set.all %} {% endfor %}
{% translate "Project" %} {% translate "Team" %} {% translate "Members" %}
{{ group.defining_project }} {% translate "Site-wide team" %} {{ group }} {{ group.user__count }} {% icon 'delete.svg' %}
{{ userblock.project.name }} {% if userblock.expiry %} {% blocktranslate with expiry=userblock.expiry|date:"DATE_FORMAT" %}Blocked until {{ expiry }}{% endblocktranslate %} {% else %} {% translate "Blocked permanently" %} {% endif %} {% icon 'close.svg' %}
{% crispy group_form %}
{% csrf_token %}

{% translate "Edit user" %}

{{ form|crispy }}
{% csrf_token %}

{% documentation_icon 'admin/auth' '2fa' right=True %} {% translate "Two-factor authentication" %}

{% if page_user.profile.has_2fa %} {% translate "The user has two-factor authentication." %} {% else %} {% translate "The user doesn't have two-factor authentication." %} {% endif %}
{% if page_user.profile.has_2fa %} {% endif %}

{% translate "Password reset" %}

{% translate "Disables password authentication for the user." %}

{% translate "Removal" %}

{% translate "Account removal deletes all user private data." %}
{% endif %}
{% endwith %} {% endblock content %}