From 0b4d3fbc200e646eed48a1a919dde9ee03678688 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 11:38:57 -0500 Subject: Bot can submit to scoreboard now Also updated the scoreboard styling refs #13 --- rails/app/views/lingo/scores/index.html.haml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rails/app/views') diff --git a/rails/app/views/lingo/scores/index.html.haml b/rails/app/views/lingo/scores/index.html.haml index f0f681d..afcd0c7 100644 --- a/rails/app/views/lingo/scores/index.html.haml +++ b/rails/app/views/lingo/scores/index.html.haml @@ -1,7 +1,12 @@ %h2 Bot Puzzles Scoreboard %table#scores - - @scores.each do |score| - %tr + %tr.scores-header + %th + %th{colspan: 2} Player + %th Score + - @scores.each_with_index do |score,index| + %tr{class: cycle("even", "odd")} + %td.score-index #{index+1}. %td.score-pfp - if !score.avatar_url.nil? = image_tag score.avatar_url -- cgit 1.4.1