Add auth in all controllers

This commit is contained in:
sto
2025-03-22 13:07:12 +01:00
parent 5472a400d1
commit 6b02eecb9b
11 changed files with 107 additions and 6 deletions

View File

@@ -15,9 +15,10 @@
.card-header
= contest.name
.card-body
.card-text.mb-2 = "#{contest.puzzles.length} puzzles - #{contest.contestants.length} participants"
.row
- contest.puzzles.each do |puzzle|
- if puzzle.image.attached?
.col
= image_tag puzzle.image, style: "max-height: 80px;"
.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)