ui: user_detail: add user banned hint

pull/370/head
undefined 2 years ago
parent 84569a79b9
commit cbd5db1ecf

@ -802,6 +802,7 @@ This message will be presented to those whose submissions are accepted.: 这条
This page needs JavaScript to work.: 这个页面需要 Javascript。 This page needs JavaScript to work.: 这个页面需要 Javascript。
This section cannot be challenged at present, so please complete the following sections first: 该章节目前不可挑战,请先完成以下章节 This section cannot be challenged at present, so please complete the following sections first: 该章节目前不可挑战,请先完成以下章节
This type of files are not allowed to be uploaded.: 不允许上传这种文件。 This type of files are not allowed to be uploaded.: 不允许上传这种文件。
This user was banned.: 此用户已被封禁。
Time (Seconds): 耗时 (秒) Time (Seconds): 耗时 (秒)
Time Cost: 耗时 Time Cost: 耗时
Time Extension: 延期 Time Extension: 延期

@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.37.16", "version": "4.37.17",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",

@ -32,6 +32,9 @@
{% endif %} {% endif %}
</p> </p>
<p>{{ _('Solved {0} problems, RP: {1} (No. {2})').format(udoc.nAccept|default(0), udoc['rp']|default(0.0)|round(2), udoc['rank']|default('?')) }}</p> <p>{{ _('Solved {0} problems, RP: {1} (No. {2})').format(udoc.nAccept|default(0), udoc['rp']|default(0.0)|round(2), udoc['rank']|default('?')) }}</p>
{% if not udoc.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<p>{{ _('This user was banned.') }}</p>
{% endif %}
<div class="profile-header__contact-bar"> <div class="profile-header__contact-bar">
{% if isSelfProfile %} {% if isSelfProfile %}
<a class="profile-header__contact-item" href="{{ url('home_settings', category='account') }}" data-tooltip="{{ _('Edit Profile') }}"> <a class="profile-header__contact-item" href="{{ url('home_settings', category='account') }}" data-tooltip="{{ _('Edit Profile') }}">

Loading…
Cancel
Save