-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathranking.pug
43 lines (43 loc) · 1.53 KB
/
ranking.pug
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
doctype html
html
head
link(rel='stylesheet', href='/style.css')
link(rel='icon', href='/default.jpg')
script(type='text/javascript' src='/script.js')
title AC Leaderboard: #{track}
body
#container
#title
a(href='/')
h3=title
#content
h1(style='text-align:center;') Track: #{track}
table#leaderboard
tr
th#nameHeader
h3 Name
th#modelHeader
h3 Model
th#laptimeHeader
h3 Laptime
th#lapsHeader
h4 Laps
each record in records
tr
td.name
h3=record.name
td.model
img.carImg(src=`/img/${record.model}`)
h4=record.modelName
td.laptime
h3.laptimeString=record.laptime
td.laps
h3=record.laps
.space
div#nav
unless page === 0
a(href=`/${page-1}`, style='margin-right: 2vw')
h3 Previous
a(href=`/${page+1}`)
h3 Next
.space