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
a.btn.btn-primary.mb-4 href=new_contest_path
| Create a new contest
.row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest|
.card.mb-2
.card-body
.card-title
.col
.card.h-100
.card-header
= contest.name
.card-body
p.card-text
| Description text comes here.
a.btn.btn-primary href=contest_path(contest)
| Open
a.btn.btn-primary.mt-4 href=new_contest_path
| Create a new contest