Use cards for contests
This commit is contained in:
parent
64109cdfd3
commit
e756dbcad9
@ -1,12 +1,16 @@
|
||||
h4.mt-4 Manage your contests
|
||||
h4.mb-3 Manage your contests
|
||||
|
||||
- @contests.each do |contest|
|
||||
.card.mb-2
|
||||
.card-body
|
||||
.card-title
|
||||
= contest.name
|
||||
a.btn.btn-primary href=contest_path(contest)
|
||||
| Open
|
||||
|
||||
a.btn.btn-primary.mt-4 href=new_contest_path
|
||||
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|
|
||||
.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
|
Loading…
x
Reference in New Issue
Block a user