summary refs log tree commit diff stats
path: root/web/views/index.haml
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 04:12:45 +0000
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 04:12:45 +0000
commit460edd4191229635e86c0e3781a361126c140ca9 (patch)
tree019e4e087cd1535125d99ab3cf3a430ed63fce76 /web/views/index.haml
parent9fc4c06bb40ff3d74031f1dd07e0352f965fc01e (diff)
parent83437f5895fd4f110694e66c9d939ff492bc2e1b (diff)
downloadlingo-460edd4191229635e86c0e3781a361126c140ca9.tar.gz
lingo-460edd4191229635e86c0e3781a361126c140ca9.tar.bz2
lingo-460edd4191229635e86c0e3781a361126c140ca9.zip
Merge branch 'main' of /srv/git/lingo into main
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