-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjogos-detalhes-participantes.html
executable file
·36 lines (36 loc) · 1.33 KB
/
jogos-detalhes-participantes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Participantes</h3>
<div class="box-tools pull-right">
{% if user.is_authenticated %}
<a href="/pontuacao/{{ jogo.pk }}" class="btn btn-box-tool">Atualizar</a>
{% endif %}
<!--<a href="/jogos/sair/{{ jogo.pk }}" class="btn btn-box-tool text-red">Sair</a>-->
{% if not jogo.intercampi and not user.is_authenticated %}
<a href="/jogos/participar/{{ jogo.pk }}" class="btn btn-box-tool">Participar</a>
{% endif %}
</div>
</div>
<div class="box-body">
<table class="table datatables">
<thead>
<tr>
<th>#</th>
<th>Nome</th>
<th>Problemas</th>
<th>Tempo</th>
</tr>
</thead>
<tbody>
{% for pontuacao in jogo.pontuacao.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ pontuacao.participante.nome }}</td>
<td>{{ pontuacao.pontos }}</td>
<td>{{ pontuacao.tempo }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>