From 40b18cbf417cdfd743163143da17d729ac95dc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Sender=C3=A1k?= Date: Sat, 25 Apr 2020 18:26:17 +0200 Subject: [PATCH] previous stash added to display --- api/templates/status.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/templates/status.html b/api/templates/status.html index def2a0c..a4a0ddf 100644 --- a/api/templates/status.html +++ b/api/templates/status.html @@ -121,6 +121,25 @@ {% endif %} {% endif %} + + {% if status['previous_stash'] %} +

Predchádzajúca kôpka:

+ + {% for player in range(status['previous_stash']['first_player'], status['previous_stash']['first_player'] + 4) %} + + {% endfor %} + + {% for player in range(status['previous_stash']['first_player'], status['previous_stash']['first_player'] + 4) %} + + {% endfor %} + +
{{ players[player % 4] }}
+ {% if status['previous_stash']['cards'][player % 4] %} + + {% endif %} +
+ {% endif %} +