You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/packages/ui-default/templates/ranking.html

46 lines
1.6 KiB
HTML

{% extends "layout/basic.html" %}
{% import "components/paginator.html" as paginator with context %}
{% import "components/nothing.html" as nothing with context %}
{% block content %}
<div class="row">
<div class="medium-12 columns">
<div class="section">
<div class="section__body no-padding">
<div data-fragment-id="ranking">
{% if not udocs.length %}
{{ nothing.render('Sorry, there is no user in this domain.') }}
{% else %}
<table class="data-table">
<colgroup>
<col class="col--rank">
<col class="col--user">
<col class="col--rp">
<col class="col--bio">
</colgroup>
<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 udoc in udocs -%}
<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--bio">{{ udoc.bio|default('')|truncate(64, true)|markdownInline|safe }}</td>
</tr>
{%- endfor -%}
</tbody>
</table>
{{ paginator.render(page, upcount) }}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}