Flexify scoreboard
This commit is contained in:
parent
6c16e5e232
commit
6fb5ba5f3e
@ -1,28 +1,30 @@
|
|||||||
.d-flex.flex-row.justify-content-center.mb-5
|
.d-flex.flex-column style="height: calc(100vh - 180px)"
|
||||||
- @contest.puzzles.each do |puzzle|
|
.d-flex.flex-row.justify-content-center.mb-5
|
||||||
= image_tag(puzzle.image, class: "img-fluid m-2", style: "max-height: 256px") if puzzle.image.attached?
|
- @contest.puzzles.each do |puzzle|
|
||||||
|
= image_tag(puzzle.image, class: "img-fluid m-3", style: "max-height: 256px") if puzzle.image.attached?
|
||||||
|
|
||||||
table.table.table-striped.table-hover
|
.d-flex.flex-column style="overflow-y: auto"
|
||||||
thead
|
table.table.table-striped.table-hover
|
||||||
tr
|
thead
|
||||||
th scope="col"
|
tr
|
||||||
= t("helpers.rank")
|
th scope="col"
|
||||||
th scope="col"
|
= t("helpers.rank")
|
||||||
= t("activerecord.attributes.contestant.name")
|
th scope="col"
|
||||||
- if @contest.puzzles.size > 1
|
= t("activerecord.attributes.contestant.name")
|
||||||
th scope="col"
|
- if @contest.puzzles.size > 1
|
||||||
= t("activerecord.attributes.contestant.completions")
|
th scope="col"
|
||||||
th scope="col"
|
= t("activerecord.attributes.contestant.completions")
|
||||||
= t("activerecord.attributes.contestant.display_time")
|
th scope="col"
|
||||||
tbody
|
= t("activerecord.attributes.contestant.display_time")
|
||||||
- @contestants.each_with_index do |contestant, index|
|
tbody
|
||||||
tr scope="row"
|
- @contestants.each_with_index do |contestant, index|
|
||||||
td
|
tr scope="row"
|
||||||
= index + 1
|
td
|
||||||
td
|
= index + 1
|
||||||
= contestant.name
|
td
|
||||||
- if @contest.puzzles.size > 1
|
= contestant.name
|
||||||
td
|
- if @contest.puzzles.size > 1
|
||||||
= contestant.completions.length
|
td
|
||||||
td
|
= contestant.completions.length
|
||||||
= contestant.display_time
|
td
|
||||||
|
= contestant.display_time
|
Loading…
x
Reference in New Issue
Block a user