From cbd5db1ecf928a9553f495670ec7b247230e367a Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 30 May 2022 21:39:14 +0800 Subject: [PATCH] ui: user_detail: add user banned hint --- packages/ui-default/locales/zh.yaml | 1 + packages/ui-default/package.json | 2 +- packages/ui-default/templates/user_detail.html | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui-default/locales/zh.yaml b/packages/ui-default/locales/zh.yaml index 4a7ae97f2..0a624de06 100644 --- a/packages/ui-default/locales/zh.yaml +++ b/packages/ui-default/locales/zh.yaml @@ -802,6 +802,7 @@ This message will be presented to those whose submissions are accepted.: 这条 This page needs JavaScript to work.: 这个页面需要 Javascript。 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 user was banned.: 此用户已被封禁。 Time (Seconds): 耗时 (秒) Time Cost: 耗时 Time Extension: 延期 diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index efd1ccc74..65b47ca13 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.37.16", + "version": "4.37.17", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js", diff --git a/packages/ui-default/templates/user_detail.html b/packages/ui-default/templates/user_detail.html index 96717a22c..8c0b1556b 100644 --- a/packages/ui-default/templates/user_detail.html +++ b/packages/ui-default/templates/user_detail.html @@ -32,6 +32,9 @@ {% endif %}

{{ _('Solved {0} problems, RP: {1} (No. {2})').format(udoc.nAccept|default(0), udoc['rp']|default(0.0)|round(2), udoc['rank']|default('?')) }}

+ {% if not udoc.hasPriv(PRIV.PRIV_USER_PROFILE) %} +

{{ _('This user was banned.') }}

+ {% endif %}
{% if isSelfProfile %}