From bde19234badd62f10e15792b670720e14a7ccdfc Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 2 Oct 2022 17:12:15 +0200 Subject: [PATCH] Add return to lobby button --- templates/cwa/gogame.html.j2 | 10 +++++++--- templates/cwa/set.html.j2 | 7 ++++++- webgames/go.py | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/templates/cwa/gogame.html.j2 b/templates/cwa/gogame.html.j2 index 4704f42..21539a9 100644 --- a/templates/cwa/gogame.html.j2 +++ b/templates/cwa/gogame.html.j2 @@ -70,7 +70,7 @@ -
+
{% if abandoned %} Game abandoned {% elif score is not none %} @@ -90,8 +90,12 @@ {% endif %}
- - Refresh + + {% if game.is_completed %} + Return to lobby + {% else %} + Refresh + {% endif %}