summaryrefslogtreecommitdiff
path: root/views/create.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-15 20:50:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-18 21:16:47 +0200
commitd7ae1e694112d6a4bfc9d528aa738fb04946a0b3 (patch)
treefc4f1c147d5a7887f98240df2851a3ee8f039b29 /views/create.pug
parent9e77cf5b29a533faf1909327772359d189e527b1 (diff)
downloadserver-d7ae1e694112d6a4bfc9d528aa738fb04946a0b3.tar.gz
Enforce limits on how many games you can create and join.
Also limit joining more games if you have too many games waiting. Generous default limits: 7 open, 29 active, and 3 waiting.
Diffstat (limited to 'views/create.pug')
-rw-r--r--views/create.pug7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/create.pug b/views/create.pug
index d742cfc..c8c70b2 100644
--- a/views/create.pug
+++ b/views/create.pug
@@ -38,5 +38,8 @@ html
label
input(type="checkbox" name="is_private" value="true")
| Private
- p
- button(type="submit") Create
+ if limit
+ p.error= limit
+ else
+ p
+ button(type="submit") Create