blob: d3f85daff28823d7031af7f0a60158e9a4a52cc6 (
plain)
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
|
{{ define "battles" }}
{{ template "head" . }}
<body>
{{ template "nav" . }}
<span id="allbattles"></span>
<h1><a href="#allbattles">All Battles</a></h1>
<p>A battle is a collection of matches. It plays through all matches in the elimination ladder in order to determine an overall winner.</p>
<br>
<table>
{{ range $battle := .battles }}
<tr class="trhover">
<td>
- <a href="/battle/{{ $battle.ID }}">{{ $battle.Name }}</a>
</td>
<td>
{{ range $idx, $bot := $battle.Bots }}{{if $idx}},{{end}}<a href="/user/{{ $bot.ID }}">{{ $bot.Name }}</a>{{ end }}
</td>
</tr>
{{ end }}
</table>
</body>
{{ template "footer" . }}
{{ end }}
|