30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
.d-flex.flex-column style="height: calc(100vh - 180px)"
|
|
.d-flex.flex-row.justify-content-center.mb-5
|
|
- @contest.puzzles.each do |puzzle|
|
|
= image_tag(puzzle.image, class: "img-fluid m-3", style: "max-height: 256px") if puzzle.image.attached?
|
|
|
|
.d-flex.flex-column style="overflow-y: auto"
|
|
table.table.table-striped.table-hover
|
|
thead
|
|
tr
|
|
th scope="col"
|
|
= t("helpers.rank")
|
|
th scope="col"
|
|
= t("activerecord.attributes.contestant.name")
|
|
- if @contest.puzzles.size > 1
|
|
th scope="col"
|
|
= t("activerecord.attributes.contestant.completions")
|
|
th scope="col"
|
|
= t("activerecord.attributes.contestant.display_time")
|
|
tbody
|
|
- @contestants.each_with_index do |contestant, index|
|
|
tr scope="row"
|
|
td
|
|
= index + 1
|
|
td
|
|
= contestant.name
|
|
- if @contest.puzzles.size > 1
|
|
td
|
|
= contestant.completions.length
|
|
td
|
|
= contestant.display_time |