X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=templates%2Fadmin.html;h=e2ed1b7664a94d1c4de97f3aa2156fd804b466e8;hb=d7b96ee0316021fa7a5e428950e2d8a9d8754582;hp=39939b2f4b1c8fb3402632f3cdfa5b856377961c;hpb=eff8b40b8ee5bccc0990a49791365abb3b64b8b1;p=empires-server
diff --git a/templates/admin.html b/templates/admin.html
index 39939b2..e2ed1b7 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -12,10 +12,13 @@
{% for game in games.active %}
-
- {{ game.id }} ({{ game.clients.length }}/{{ game._players.length }} active)
- {% for player in game._players %}
- {{ player.name }}
- {% endfor %}
+ {{game.meta.name}}: {{ game.id }} ({{ game.players|active|length }}/{{ game.players.length }})
+
+ Active:
+ {{ game.players|active|map_prop("name")|join(", ") }}
+
+ Idle:
+ {{ game.players|idle|map_prop("name")|join(", ") }}
{% endfor %}
@@ -27,10 +30,8 @@
{% for game in games.idle %}
-
- {{ game.id }} ({{ game._players.length }})
- {% for player in game._players %}
- {{ player.name }}
- {% endfor %}
+ {{game.meta.name}}: {{ game.id }} ({{ game.players.length }}):
+ {{ game.players|map_prop("name")|join(", ") }}
{% endfor %}