mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix rp_default
This commit is contained in:
1 parent
f31b246910
commit
217facc710
3 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.34.34",
|
||||
"version": "4.34.35",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<tr>
|
||||
<td class="col--rank">{{ loop.index }}</td>
|
||||
<td class="col--user">{{ user.render_inline(udoc, levelbadge=false) }}</td>
|
||||
<td class="col--rp">{{ udoc.rp|default(1500)|round(0) }}</td>
|
||||
<td class="col--rp">{{ udoc.rp|default(0)|round(0) }}</td>
|
||||
<td class="col--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
|
||||
</tr>
|
||||
{%- endfor -%}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<tr>
|
||||
<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--rp">{{ udoc.rp|default(0)|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>
|
||||
|
||||
Reference in new issue
Block a user