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-29 23:01:44 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-29 23:01:44 -0500
commitede07e6e38a346b3ff0bbccefb655f3ae0a32504 (patch)
treee8f08bd250bd0611228b0688f8430bf47ed695dd /web/views/index.haml
parent9c324f51cf3eb46251e4114cd3cdd7a56305f826 (diff)
downloadlingo-ede07e6e38a346b3ff0bbccefb655f3ae0a32504.tar.gz
lingo-ede07e6e38a346b3ff0bbccefb655f3ae0a32504.tar.bz2
lingo-ede07e6e38a346b3ff0bbccefb655f3ae0a32504.zip
Rewrite web component with Sinatra
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