mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: update rp method
This commit is contained in:
1 parent
ba5dd281dd
commit
9e86d47d19
10 files changed
+136
-122
No files matched your search
@@ -42,6 +42,8 @@ problem.import.problem_description: '## Description'
|
||||
ranking: Ranking
|
||||
record_detail: Record Detail
|
||||
record_main: Record
|
||||
rpDetailText_contest: Contest
|
||||
rpDetailText_problem: Problem
|
||||
setting_customize: Customize
|
||||
setting_display: Display Preference
|
||||
setting_function: Function
|
||||
|
||||
@@ -561,6 +561,7 @@ Please select at least one file to perform this operation.: 请选择至少一
|
||||
Please select at least one role to perform this operation.: 请选择至少一个角色来进行操作。
|
||||
Please select at least one user to perform this operation.: 请选择至少一个用户来进行操作。
|
||||
Preference Settings: 偏好设置
|
||||
Preparing Upload...: 准备上传...
|
||||
Pretest Data: 自测数据
|
||||
Pretest Your Code: 使用自定义数据测试
|
||||
Pretest: 自测
|
||||
@@ -659,6 +660,8 @@ Role name can only contains numbers, letters and underscores.: 角色名称只
|
||||
Role: 角色
|
||||
Roles: 角色
|
||||
RP Algorithm: RP 算法
|
||||
rpDetailText_contest: 比赛
|
||||
rpDetailText_problem: 题目
|
||||
Rule: 规则
|
||||
Run Pretest: 运行自测
|
||||
Run: 运行
|
||||
@@ -809,12 +812,14 @@ Unstar: 取消收藏
|
||||
Update Permission: 更新权限
|
||||
Update Settings: 更新设置
|
||||
Update: 更新
|
||||
Upload Failed: 上传失败
|
||||
Upload File: 上传文件
|
||||
Upload Problem: 上传题目
|
||||
Upload: 上传
|
||||
Uploaded By: 上传者
|
||||
Uploading files...: 正在上传文件...
|
||||
Uploading... ({0}%): 正在上传... ({0}%)
|
||||
Uploading...: 正在上传...
|
||||
Upvote: 好评
|
||||
Usage exceeded.: 用量超限。
|
||||
Use admin specificed: 由管理员指定
|
||||
@@ -827,9 +832,6 @@ User ID: 用户 ID
|
||||
User will no longer be allowed to join the domain after expiration.: 过期后,用户将不能加入此域。
|
||||
user_detail: 用户
|
||||
user_login: 登录
|
||||
Uploading...: 正在上传...
|
||||
Upload Failed: 上传失败
|
||||
Preparing Upload...: 准备上传...
|
||||
user_logout: 登出
|
||||
user_lostpass: 忘记密码
|
||||
user_register_with_code: 注册
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.33.1",
|
||||
"version": "4.33.2",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -7,17 +7,21 @@
|
||||
width: rem(220px)
|
||||
|
||||
.col--rp
|
||||
width: rem(80px)
|
||||
width: rem(60px)
|
||||
text-align: right
|
||||
|
||||
.col--detail
|
||||
width: rem(50px)
|
||||
text-align: center
|
||||
|
||||
.col--ac
|
||||
width: rem(70px)
|
||||
text-align: right
|
||||
width: rem(50px)
|
||||
text-align: center
|
||||
|
||||
.col--bio
|
||||
height: 36px !important;
|
||||
display: block;
|
||||
|
||||
+mobile()
|
||||
.col--bio
|
||||
.col--bio, .col--detail
|
||||
display: none
|
||||
@@ -15,6 +15,11 @@
|
||||
<col class="col--rank">
|
||||
<col class="col--user">
|
||||
<col class="col--rp">
|
||||
{% for key, def in model.rp %}
|
||||
{% if not def.hidden %}
|
||||
<col class="col--detail rp-{{ key }}">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<col class="col--ac">
|
||||
<col class="col--bio">
|
||||
</colgroup>
|
||||
@@ -23,6 +28,11 @@
|
||||
<th class="col--rank">{{ _('Rank') }}</th>
|
||||
<th class="col--user">{{ _('Username') }}</th>
|
||||
<th class="col--rp">{{ _('RP') }}</th>
|
||||
{% for key, def in model.rp %}
|
||||
{% if not def.hidden %}
|
||||
<th class="col--detail rp-{{ key }}">{{ _('rpDetailText_' + key) }}</th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<th class="col--ac">{{ _('Accept') }}</th>
|
||||
<th class="col--bio">{{ _('Bio') }}</th>
|
||||
</tr>
|
||||
@@ -33,6 +43,11 @@
|
||||
<td class="col--rank">{{ (page - 1) * 100 + loop.index }}</td>
|
||||
<td class="col--user">{{ user.render_inline(udoc) }}</td>
|
||||
<td class="col--rp">{{ udoc.rp|default(1500)|round(0) }}</td>
|
||||
{% for key, def in model.rp %}
|
||||
{% if not def.hidden %}
|
||||
<td class="col--detail rp-{{ key }}">{{ udoc.rpInfo[key]|round if udoc.rpInfo[key] else '-' }}</td>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<td class="col--ac">{{ udoc.nAccept|default(0) }}</td>
|
||||
<td class="col--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
|
||||
</tr>
|
||||
|
||||
Reference in new issue
Block a user