diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/create.pug | 7 | ||||
-rw-r--r-- | views/join.pug | 4 |
2 files changed, 9 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 diff --git a/views/join.pug b/views/join.pug index ced1fe3..3110bd3 100644 --- a/views/join.pug +++ b/views/join.pug @@ -27,6 +27,7 @@ html let whitelist = !{ JSON.stringify(whitelist) } let blacklist = !{ JSON.stringify(blacklist) } let friends = !{ JSON.stringify(friends) } + let limit = !{ !!limit } let ready = !{ ready } script(src="/join.js") body @@ -36,6 +37,9 @@ html h1 #{game.title_name} else h1 #{game.title_name} - #{game.scenario} + + if limit + p.error= limit p.error#error div.logo |