-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathleaderboards.html
More file actions
38 lines (32 loc) · 988 Bytes
/
leaderboards.html
File metadata and controls
38 lines (32 loc) · 988 Bytes
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
37
38
{{template "header" .}}
<style>
table.leaderboard th:nth-child(1) { width:30%; }
table.leaderboard th:nth-child(2) { width:30%; }
table.leaderboard th:nth-child(3) { width:10%; }
table.leaderboard th:nth-child(4) { width:30%; }
</style>
<div class="overlay">
{{ range $idx, $lb := .leaderboards }}
<h3>{{ $lb.Name }} Leaderboard</h3>
<table class="leaderboard">
<tr>
<th>Name</th>
<th>Class</th>
<th>Level</th>
<th>{{ $lb.Name }}</th>
</tr>
{{ range $idx, $entry := $lb.Top }}
{{ if eq $entry.ScoreValue 0 }}
{{ continue }}
{{ end }}
<tr>
<td>{{ $entry.CharacterName }}</td>
<td>{{ $entry.CharacterClass }}</td>
<td>{{ $entry.Level }}</td>
<td>{{ $entry.ScoreValue }}</td>
</tr>
{{ end }}
</table>
{{ end }}
</div>
{{template "footer" .}}