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
|
||||||
|
|
||||||
|
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|
|
- @contests.each do |contest|
|
||||||
.card.mb-2
|
.col
|
||||||
.card-body
|
.card.h-100
|
||||||
.card-title
|
.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
|
|
Loading…
x
Reference in New Issue
Block a user