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/templates/ranking.html

43 lines
1.5 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">
4 years ago
{% 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--rating">
</colgroup>
<thead>
<tr>
<th class="col--rank">{{ _('Rank') }}</th>
<th class="col--user">{{ _('Username') }}</th>
<th class="col--rating">{{ _('Rating') }}</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, badge=false) }}</td>
<td class="col--rating">{{ udoc.rating|default(1500)|round(0) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ paginator.render(page, upcount) }}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}