sto 10fa821f19
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 38s
Some contest pages translations
2025-03-27 14:51:25 +01:00

24 lines
783 B
Plaintext

.row
.col
h4.mb-3
= t("contests.index.manage_contests")
.float-end
a.btn.btn-primary.mb-4 href=new_contest_path
= t("contests.index.new_contest")
.row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest|
.col
css:
.card:hover { background-color: lightblue; }
.card.h-100
.card-header
= contest.name
.card-body
.card-text.mb-2 = "#{contest.puzzles.length} puzzles - #{contest.contestants.length} participants"
.row
.col
- contest.puzzles.each do |puzzle|
- if puzzle.image.attached?
= image_tag puzzle.image, style: "max-height: 50px;", class: "mb-2 me-2"
a.stretched-link href=contest_path(contest)