blob: 353b67454a046c73735b261056c100a14f8b9c5e (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{{template "_header.tmpl" .Common}}
<div class="box">
<h1>World Information</h1>
{{with .World}}
<table class="info">
<tr>
<th>Name:</th>
<td>{{.Name}}</td>
</tr>
<tr>
<th>Type:</th>
<td>{{.Type}}</td>
</tr>
<tr>
<th>Players Online:</th>
<td>{{.NumPlayers}}</td>
</tr>
<tr>
<th>Online Peak:</th>
{{if eq .OnlinePeak 1}}
<td>{{.OnlinePeak}} player (on {{FormatTimestamp .OnlinePeakTimestamp}})</td>
{{else if gt .OnlinePeak 1}}
<td>{{.OnlinePeak}} players (on {{FormatTimestamp .OnlinePeakTimestamp}})</td>
{{else}}
<td>None</td>
{{end}}
</tr>
<tr>
{{if gt .LastStartup .LastShutdown}}
<th>Uptime:</th>
<td>{{FormatDurationSince .LastStartup}}</td>
{{else}}
<th>Downtime:</th>
<td style="color: #A11;">{{FormatDurationSince .LastShutdown}}</td>
{{end}}
</tr>
</table>
<a class="button" href="/killstatistics?world={{.Name}}">Kill Statistics</a>
{{else}}
<p>No information available.</p>
{{end}}
</div>
<div class="box">
<h1>Players Online</h1>
{{if .OnlineCharacters}}
<table>
<tr>
<th>Name</th>
<th>Level</th>
<th>Vocation</th>
</tr>
{{range .OnlineCharacters}}
<tr>
<td><a href="/character?name={{.Name}}">{{.Name}}</a></td>
<td>{{or .Level 1}}</td>
<td>{{or .Profession "None"}}</td>
</tr>
{{end}}
</table>
{{else}}
<p>There are no players online.</p>
{{end}}
</div>
{{template "_footer.tmpl" .Common}}
|