mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: ranking: 显示通过数量
This commit is contained in:
1 parent
b7348e4be3
commit
10c3a62168
3 files changed
+10
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.20.7",
|
||||
"version": "4.20.8",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
.page--ranking, .page--homepage
|
||||
.col--rank
|
||||
width: rem(70px)
|
||||
width: rem(65px)
|
||||
position: relative
|
||||
|
||||
.col--user
|
||||
width: rem(200px)
|
||||
text-align: center
|
||||
width: rem(220px)
|
||||
|
||||
.col--rp
|
||||
width: rem(80px)
|
||||
text-align: right
|
||||
|
||||
.col--ac
|
||||
width: rem(70px)
|
||||
text-align: right
|
||||
|
||||
.col--bio
|
||||
height: 36px !important;
|
||||
display: block;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<col class="col--rank">
|
||||
<col class="col--user">
|
||||
<col class="col--rp">
|
||||
<col class="col--ac">
|
||||
<col class="col--bio">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@@ -22,6 +23,7 @@
|
||||
<th class="col--rank">{{ _('Rank') }}</th>
|
||||
<th class="col--user">{{ _('Username') }}</th>
|
||||
<th class="col--rp">{{ _('RP') }}</th>
|
||||
<th class="col--ac">{{ _('Accept') }}</th>
|
||||
<th class="col--bio">{{ _('Bio') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -31,6 +33,7 @@
|
||||
<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>
|
||||
<td class="col--ac">{{ udoc.nAccept|default(0) }}</td>
|
||||
<td class="col--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
|
||||
</tr>
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in new issue
Block a user