previous stash added to display

This commit is contained in:
Jakub Senderák
2020-04-25 18:26:17 +02:00
parent 71c9e33b85
commit 40b18cbf41
+19
View File
@@ -121,6 +121,25 @@
</form>
{% endif %}
{% endif %}
{% if status['previous_stash'] %}
<h1>Predchádzajúca kôpka:</h1>
<table style="width: auto;">
{% for player in range(status['previous_stash']['first_player'], status['previous_stash']['first_player'] + 4) %}
<th>{{ players[player % 4] }}</th>
{% endfor %}
<tr>
{% for player in range(status['previous_stash']['first_player'], status['previous_stash']['first_player'] + 4) %}
<td class="card_display">
{% if status['previous_stash']['cards'][player % 4] %}
<img src="/static/cards/{{ status['previous_stash']['cards'][player % 4] }}.png" width="80" height="auto">
{% endif %}
</td>
{% endfor %}
</tr>
</table>
{% endif %}
</div>
<div id="standings">