diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-10-18 20:37:00 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-10-18 20:39:12 -0300 |
| commit | 48375acd7d6581b42b354618ed694a9d1cd25439 (patch) | |
| tree | bd4fa70e4d39b3d637b218bbe7f52b86a96a1522 /templates/world_info.tmpl | |
| parent | cd93a7c2bf927fd747fc188bdda98ea03b1f5e72 (diff) | |
| download | web-48375acd7d6581b42b354618ed694a9d1cd25439.tar.gz web-48375acd7d6581b42b354618ed694a9d1cd25439.zip | |
overall improvements + keep up with querymanager v0.2
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}} |
