diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-31 02:28:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-02-12 21:50:53 +0100 |
commit | 09cae5d2f687c7df4972f58860fbc3fb9a032c1c (patch) | |
tree | a4b1a5a00260a1a7974c64e3ec2a6991d9491dca /views/join.pug | |
parent | 4429af4150307588409940398ef1ef49371ececa (diff) | |
download | server-09cae5d2f687c7df4972f58860fbc3fb9a032c1c.tar.gz |
Add rewind action on join page (for admin only).
Diffstat (limited to 'views/join.pug')
-rw-r--r-- | views/join.pug | 6 |
1 files changed, 6 insertions, 0 deletions
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 <a href="/login">Login</a> or <a href="/signup">sign up</a> 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 |