Use cards for contests

This commit is contained in:
sto 2025-03-15 09:40:08 +01:00
parent 64109cdfd3
commit e756dbcad9

View File

@ -1,12 +1,16 @@
h4.mt-4 Manage your contests h4.mb-3 Manage your contests
- @contests.each do |contest| a.btn.btn-primary.mb-4 href=new_contest_path
.card.mb-2 | Create a new contest
.card-body
.card-title .row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest|
.col
.card.h-100
.card-header
= contest.name = contest.name
.card-body
p.card-text
| Description text comes here.
a.btn.btn-primary href=contest_path(contest) a.btn.btn-primary href=contest_path(contest)
| Open | Open
a.btn.btn-primary.mt-4 href=new_contest_path
| Create a new contest