summaryrefslogtreecommitdiff
path: root/views/match.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-05 15:09:29 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-05 15:18:36 +0200
commitfc9af57627fdffcbdcab1ac0dcf7989d6323a8a3 (patch)
tree2421f4736f6aeb5211127e06e2e1f707b3267a94 /views/match.pug
parent12a5afcf439e4879bab5a7bf5a92b6834a619c48 (diff)
downloadserver-fc9af57627fdffcbdcab1ac0dcf7989d6323a8a3.tar.gz
Revert "Add match making."
This reverts commit b5a31813aa284b8b64bfd2660ea3a048275cee89.
Diffstat (limited to 'views/match.pug')
-rw-r--r--views/match.pug71
1 files changed, 0 insertions, 71 deletions
diff --git a/views/match.pug b/views/match.pug
deleted file mode 100644
index 504cef5..0000000
--- a/views/match.pug
+++ /dev/null
@@ -1,71 +0,0 @@
-//- vim:ts=4:sw=4:
-
-mixin show_ticket(ticket)
- - var setup = SETUP_TABLE[ticket.setup_id]
- label
- input(type="checkbox" name="tickets" value=ticket.ticket_id)
- case ticket.pace
- when 1
- | #{EMOJI_LIVE} #{setup.setup_name}
- when 2
- | #{EMOJI_FAST} #{setup.setup_name}
- when 3
- | #{EMOJI_SLOW} #{setup.setup_name}
-
-mixin show_setup(setup)
- label
- input(type="checkbox" name="setups" value=setup.setup_id)
- | #{setup.setup_name}
-
-mixin show_setup_list(list)
- each setup in list
- +show_setup(setup)
-
-doctype html
-html
- head
- include head
- title Matches
- style.
- label { display: block; margin: 2px 0; user-select: none }
- div.group, details { margin: 6px 0 }
- details > summary { user-select: none }
- details > label { margin-left: 24px }
- body
- include header
- article
- h1 The Miraculous Match-making Machine
-
- p People go in one end; games come out the other.
-
- h2 Tickets
- if tickets.length > 0
- form(method="post" action="/api/match/unqueue")
- each ticket in tickets
- +show_ticket(ticket)
- if tickets.length > 7
- p
- i Don't sign up for more games than you will be able to handle!
- p
- button(name="submit") &#x274c; Delete
- else
- p You are not queued for any matches.
-
- h2 Register
- if limit
- p.error= limit
- else
- form(method="post" action="/api/match/queue")
- each title in TITLE_LIST
- if title.setups.length > 2
- details
- summary
- u= title.title_name
- +show_setup_list(title.setups)
- else
- div.group
- +show_setup_list(title.setups)
- p
- button(name="pace" value=1) #{EMOJI_LIVE} Play Live
- button(name="pace" value=2) #{EMOJI_FAST} Play Fast
- button(name="pace" value=3) #{EMOJI_SLOW} Play Slow