From bdcbb8c28371a57a6350232acdb78095cccde0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Thu, 1 Apr 2021 13:48:51 +0200 Subject: [PATCH] Display session code to organisers --- ui/html/game.page.tmpl.html | 2 +- ui/static/game.css | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/html/game.page.tmpl.html b/ui/html/game.page.tmpl.html index 8dfe00d..b326502 100644 --- a/ui/html/game.page.tmpl.html +++ b/ui/html/game.page.tmpl.html @@ -8,7 +8,7 @@ {{ end -}} {{- define "header" }} -

{{ .P.Edges.Session.Edges.Game.Name }}

+

{{ .P.Edges.Session.Edges.Game.Name }} ({{ .P.Edges.Session.Code }})

{{ end -}} {{- define "main" }} diff --git a/ui/static/game.css b/ui/static/game.css index 279af5b..07cd9e7 100644 --- a/ui/static/game.css +++ b/ui/static/game.css @@ -65,6 +65,14 @@ body.organiser #controls { justify-content: flex-end; } +#session-code { + display: none; +} + +body.organiser #session-code { + display: inline; +} + @keyframes appear { from { transform: scale(2, 2);