{% import "components/home.html" as home with context %} {% import "components/problem.html" as problem with context %} {% extends "layout/basic.html" %} {% block content %} {{ set(UiContext, 'udoc', udoc) }}
{{ _('UID') }}: {{ udoc['_id'] }}, {{ _('Registered at') }} {{ datetimeSpan(udoc['regat'])|safe }}, {{ _('last login at') }} {{ datetimeSpan(udoc['loginat'])|safe }}, {% if sdoc and sdoc.updateAt %} {{ _('last active at') }} {{ datetimeSpan(sdoc['updateAt'])|safe if Date.now() - sdoc.updateAt.getTime() > 300000 else _('just now') }}. {% else %} {{ _('currently offline') }}. {% endif %}
{% block profile_extra_metadata %}{% endblock %}{{ _('Solved {0} problems, RP: {1} (No. {2})').format(udoc.nAccept|default(0), udoc['rp']|default(0.0)|round(2), udoc['rank']|default('?')) }}
{% if udoc._id != 1 and not udoc.hasPriv(PRIV.PRIV_USER_PROFILE) %}{{ _('This user was banned.') }}
{% endif %}