diff options
Diffstat (limited to 'templates/world_list.tmpl')
| -rw-r--r-- | templates/world_list.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/world_list.tmpl b/templates/world_list.tmpl index de9786c..07494b6 100644 --- a/templates/world_list.tmpl +++ b/templates/world_list.tmpl @@ -7,12 +7,18 @@ <th>Name</th> <th>Type</th> <th>Players Online</th> + <th>Status</th> </tr> {{range .Worlds}} <tr> <td><a href="/world?name={{.Name}}">{{.Name}}</a></td> <td>{{.Type}}</td> <td>{{.NumPlayers}}</td> + {{if gt .LastStartup .LastShutdown}} + <td style="color: #1A1;">Online</td> + {{else}} + <td style="color: #A11;">Offline</td> + {{end}} </tr> {{end}} </table> |
