summary refs log tree commit diff stats
path: root/web/views/index.haml
diff options
context:
space:
mode:
Diffstat (limited to 'web/views/index.haml')
-rw-r--r--web/views/index.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/web/views/index.haml b/web/views/index.haml new file mode 100644 index 0000000..186dd40 --- /dev/null +++ b/web/views/index.haml
@@ -0,0 +1,24 @@
1!!! 5
2%html
3 %head
4 %title LINGO Bot Scoreboard
5 %link{ rel: "stylesheet", href: "style.css", type: "text/css"}
6 %body
7 #header
8 %img{ src: "header.png" }
9 #content
10 %h2 Bot Puzzles Scoreboard
11 %table#scores
12 %tr.scores-header
13 %th
14 %th{colspan: 2} Player
15 %th Score
16 - row_cycle = ["even", "odd"].cycle
17 - @scores.each_with_index do |score,index|
18 %tr{class: row_cycle.next}
19 %td.score-index #{index+1}.
20 %td.score-pfp
21 - if !score.avatar_url.nil?
22 %img{ src: score.avatar_url }
23 %td.score-name= score.username
24 %td.score-value= score.score