X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=templates%2Fadmin.html;h=e2ed1b7664a94d1c4de97f3aa2156fd804b466e8;hb=3412d5c52c274f25a2048d503d45eb45821eb72b;hp=051d485b962e2aebd45bf33a91fd775e1fa62cc6;hpb=0f640b6dfea5ebea0d96e811191f931b49cea791;p=empires-server
diff --git a/templates/admin.html b/templates/admin.html
index 051d485..e2ed1b7 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -12,10 +12,13 @@
{% for game in games.active %}
-
- {{ game.id }} ({{ game.game.clients.length }}/{{ game.game._players.length }} active)
- {% for player in game.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.game._players.length }})
- {% for player in game.game._players %}
- {{ player.name }}
- {% endfor %}
+ {{game.meta.name}}: {{ game.id }} ({{ game.players.length }}):
+ {{ game.players|map_prop("name")|join(", ") }}
{% endfor %}