mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix ranking on homepage
This commit is contained in:
1 file changed
+26
-28
@@ -3,36 +3,34 @@
|
|||||||
<div class="section__header">
|
<div class="section__header">
|
||||||
<h1 class="section__title">{{ _('Ranking') }}</h1>
|
<h1 class="section__title">{{ _('Ranking') }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="section__body no-padding">
|
<div class="section__body no-padding" style="overflow: hidden">
|
||||||
<div>
|
<table class="data-table">
|
||||||
<table class="data-table">
|
<colgroup>
|
||||||
<colgroup>
|
<col class="col--rank">
|
||||||
<col class="col--rank">
|
<col class="col--user">
|
||||||
<col class="col--user">
|
<col class="col--rp">
|
||||||
<col class="col--rp">
|
<col class="col--bio">
|
||||||
<col class="col--bio">
|
</colgroup>
|
||||||
</colgroup>
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
|
<th class="col--rank">{{ _('Rank') }}</th>
|
||||||
|
<th class="col--user">{{ _('Username') }}</th>
|
||||||
|
<th class="col--rp">{{ _('RP') }}</th>
|
||||||
|
<th class="col--bio">{{ _('Bio') }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{%- for uid in payload -%}
|
||||||
|
{% set udoc = udict[uid] %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col--rank">{{ _('Rank') }}</th>
|
<td class="col--rank">{{ loop.index }}</td>
|
||||||
<th class="col--user">{{ _('Username') }}</th>
|
<td class="col--user">{{ user.render_inline(udoc, levelbadge=false) }}</td>
|
||||||
<th class="col--rp">{{ _('RP') }}</th>
|
<td class="col--rp">{{ udoc.rp|default(0)|round(0) }}</td>
|
||||||
<th class="col--bio">{{ _('Bio') }}</th>
|
<td class="col--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
{%- endfor -%}
|
||||||
<tbody>
|
</tbody>
|
||||||
{%- for uid in payload -%}
|
</table>
|
||||||
{% set udoc = udict[uid] %}
|
|
||||||
<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(0)|round(0) }}</td>
|
|
||||||
<td class="col--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
|
|
||||||
</tr>
|
|
||||||
{%- endfor -%}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<ul class="pager pager-bottom"><li>
|
<ul class="pager pager-bottom"><li>
|
||||||
<a class="pager__item next link" href="{{ url('ranking') }}">{{ _('More') }} ></a>
|
<a class="pager__item next link" href="{{ url('ranking') }}">{{ _('More') }} ></a>
|
||||||
|
|||||||
Reference in new issue
Block a user