From 09cae5d2f687c7df4972f58860fbc3fb9a032c1c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 31 Jan 2024 02:28:28 +0100 Subject: Add rewind action on join page (for admin only). --- views/join.pug | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'views') diff --git a/views/join.pug b/views/join.pug index 37c245b..bfb0cb8 100644 --- a/views/join.pug +++ b/views/join.pug @@ -104,3 +104,9 @@ html if !user && !ready p Login or sign up to play. + + if user && user.user_id === 1 + p + - for (let snap_id = rewind; snap_id > 0 && snap_id > rewind-5; --snap_id) + a(href="/admin/rewind/" + game.game_id + "/" + snap_id) REWIND #{snap_id} + br -- cgit v1.2.3