diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 11:38:57 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 11:39:29 -0500 |
| commit | 0b4d3fbc200e646eed48a1a919dde9ee03678688 (patch) | |
| tree | 123fed7ecf90a22618a8814ecca60d0e48567fb6 /rails/app/views | |
| parent | 0380a97230023a78ad08b738c4520e901485ed63 (diff) | |
| download | lingo-0b4d3fbc200e646eed48a1a919dde9ee03678688.tar.gz lingo-0b4d3fbc200e646eed48a1a919dde9ee03678688.tar.bz2 lingo-0b4d3fbc200e646eed48a1a919dde9ee03678688.zip | |
Bot can submit to scoreboard now
Also updated the scoreboard styling refs #13
Diffstat (limited to 'rails/app/views')
| -rw-r--r-- | rails/app/views/lingo/scores/index.html.haml | 9 |
1 files changed, 7 insertions, 2 deletions
| 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 @@ | |||
| 1 | %h2 Bot Puzzles Scoreboard | 1 | %h2 Bot Puzzles Scoreboard |
| 2 | %table#scores | 2 | %table#scores |
| 3 | - @scores.each do |score| | 3 | %tr.scores-header |
| 4 | %tr | 4 | %th |
| 5 | %th{colspan: 2} Player | ||
| 6 | %th Score | ||
| 7 | - @scores.each_with_index do |score,index| | ||
| 8 | %tr{class: cycle("even", "odd")} | ||
| 9 | %td.score-index #{index+1}. | ||
| 5 | %td.score-pfp | 10 | %td.score-pfp |
| 6 | - if !score.avatar_url.nil? | 11 | - if !score.avatar_url.nil? |
| 7 | = image_tag score.avatar_url | 12 | = image_tag score.avatar_url |
