aboutsummaryrefslogtreecommitdiff
path: root/templates/world_list.tmpl
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-18 20:37:00 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-18 20:39:12 -0300
commit48375acd7d6581b42b354618ed694a9d1cd25439 (patch)
treebd4fa70e4d39b3d637b218bbe7f52b86a96a1522 /templates/world_list.tmpl
parentcd93a7c2bf927fd747fc188bdda98ea03b1f5e72 (diff)
downloadweb-48375acd7d6581b42b354618ed694a9d1cd25439.tar.gz
web-48375acd7d6581b42b354618ed694a9d1cd25439.zip
overall improvements + keep up with querymanager v0.2
Diffstat (limited to 'templates/world_list.tmpl')
-rw-r--r--templates/world_list.tmpl6
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>