/
highscores.jade
35 lines (33 loc) · 1.1 KB
/
highscores.jade
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
extends layout
block append css
link(href='/static/css/highscores.less', rel='stylesheet/less', type='text/css')
block content
.container
.content
if highscores || github
h1.title #{req.project.name.toUpperCase()} LEGENDS
if highscores && highscores.get_err()
p.alert
|The highscores API returned the following error:
|<br />
!=trace(highscores.get_err())
else if errors
p.alert
!=trace(errors)
else
table(class="feats-table")
each row,i in data
-var href=req.path + "/" + encodeURI(row.name) + "?" + query_string;
tr(onclick="window.location.href='"+href+"';", style="cursor: pointer;")
td.place=number_to_place(i)
td.name
div=row.name
td.score=row.score
td.modifier
if i === 0
|!!!
else if i === 1
|!!
else if i === 2
|!
include includes/highscores_footer