blob: 186dd40c44b9791cc878f0382c23bb873256ce0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
!!! 5
%html
%head
%title LINGO Bot Scoreboard
%link{ rel: "stylesheet", href: "style.css", type: "text/css"}
%body
#header
%img{ src: "header.png" }
#content
%h2 Bot Puzzles Scoreboard
%table#scores
%tr.scores-header
%th
%th{colspan: 2} Player
%th Score
- row_cycle = ["even", "odd"].cycle
- @scores.each_with_index do |score,index|
%tr{class: row_cycle.next}
%td.score-index #{index+1}.
%td.score-pfp
- if !score.avatar_url.nil?
%img{ src: score.avatar_url }
%td.score-name= score.username
%td.score-value= score.score
|