aboutsummaryrefslogtreecommitdiff
path: root/templates/killstatistics.tmpl
blob: 451059e93f422aee1060cc0e2dca589364ec1ed6 (plain) (blame)
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
{{template "_header.tmpl" .Common}}
	<div class="box">
		{{with .World}}
			<h1>Kill Statistics - <a href="/world?name={{.Name}}">{{.Name}}</a></h1>
		{{else}}
			<h1>Kill Statistics</h1>
		{{end}}

		{{if .KillStatistics}}
			<table>
				<tr>
					<th>Creature</th>
					<th>Times Killed</th>
					<th>Players Killed</th>
				</tr>
				{{range .KillStatistics}}
					<tr>
						<td>{{.RaceName}}</td>
						<td>{{.TimesKilled}}</td>
						<td>{{.PlayersKilled}}</td>
					</tr>
				{{end}}
			</table>
		{{else}}
			<p>There are no kill statistics.</p>
		{{end}}
	</div>
{{template "_footer.tmpl" .Common}}