blob: 11a6c5420dc471357b736a0fa50fd80689421644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//- vim:ts=4:sw=4:
mixin show_ticket(ticket)
- var setup = SETUP_TABLE[ticket.setup_id]
tr
td= ticket.name
td= ticket.rating
td= setup.setup_name
td #{ticket.time} UTC
mixin show_ticket_list(list)
table
thead
tr
th User
th Rating
th Title
th Age
tbody
each ticket in list
+show_ticket(ticket)
doctype html
html
head
include head
title Matches
style.
div.buttons { margin-top: 8px }
body
include header
article
h1 Waiting Room - Admin
p Time is #{new Date().toISOString()}
h2 Live Tickets
if live_tickets.length > 0
+show_ticket_list(live_tickets)
else
p No live tickets.
h2 Fast Tickets
if fast_tickets.length > 0
+show_ticket_list(fast_tickets)
else
p No fast tickets.
h2 Slow Tickets
if slow_tickets.length > 0
+show_ticket_list(slow_tickets)
else
p No slow tickets.
|