35 lines
1.9 KiB
HTML
35 lines
1.9 KiB
HTML
{% extends "web/base.html" %}
|
|
{% block title %}Risultati · PLM Lottery{% endblock %}
|
|
{% block content %}
|
|
<h1>Risultati</h1>
|
|
<p class="lead">Ogni round concluso ha una prova che chiunque può ricalcolare. I giocatori compaiono solo con un indirizzo pseudonimo.</p>
|
|
{% if rows %}
|
|
<div class="table-wrap">
|
|
<table class="movements">
|
|
<caption class="visually-hidden">Round conclusi, dal più recente</caption>
|
|
<thead><tr><th scope="col">Round</th><th scope="col">Chiuso (UTC)</th><th scope="col" class="num">Montepremi</th><th scope="col" class="num">Al vincitore</th><th scope="col">Prova</th></tr></thead>
|
|
<tbody>
|
|
{% for row in rows %}
|
|
<tr>
|
|
<td data-label="Round">{{ row.id }}</td>
|
|
<td data-label="Chiuso (UTC)"><time datetime="{{ row.closed_at|date:'c' }}">{{ row.closed_at|date:"d/m/Y H:i:s" }}</time></td>
|
|
<td data-label="Montepremi" class="num">{{ row.pool_text }}</td>
|
|
<td data-label="Al vincitore" class="num">{% if row.has_winner %}{{ row.winner_text }}{% else %}<span class="hint">nessun partecipante</span>{% endif %}</td>
|
|
<td data-label="Prova"><a href="{% url 'web:result' row.id %}">Vedi la prova</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% if page.paginator.num_pages > 1 %}
|
|
<nav class="pager" aria-label="Pagine dei risultati">
|
|
{% if page.has_previous %}<a class="button secondary small" href="?pagina={{ page.previous_page_number }}">← Più recenti</a>{% endif %}
|
|
<span class="hint">Pagina {{ page.number }} di {{ page.paginator.num_pages }}</span>
|
|
{% if page.has_next %}<a class="button secondary small" href="?pagina={{ page.next_page_number }}">Meno recenti →</a>{% endif %}
|
|
</nav>
|
|
{% endif %}
|
|
{% else %}
|
|
<p class="card">Nessun round è ancora concluso. Torna dopo la prima estrazione.</p>
|
|
{% endif %}
|
|
{% endblock %}
|