diff options
Diffstat (limited to 'templates/world_info.tmpl')
| -rw-r--r-- | templates/world_info.tmpl | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/templates/world_info.tmpl b/templates/world_info.tmpl index 578a0f7..353b674 100644 --- a/templates/world_info.tmpl +++ b/templates/world_info.tmpl @@ -16,13 +16,24 @@ <td>{{.NumPlayers}}</td> </tr> <tr> - <th>Online Record:</th> - {{if .OnlineRecord}} - <td>{{.OnlineRecord}} players (on {{.OnlineRecordTime}})</td> + <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}} |
