Improve contest management view
This commit is contained in:
parent
0cbd2e4fdc
commit
7ec51b6d85
@ -1,16 +1,23 @@
|
|||||||
h4.mb-3 Manage your contests
|
.row
|
||||||
|
.col
|
||||||
a.btn.btn-primary.mb-4 href=new_contest_path
|
h4.mb-3
|
||||||
| Create a new contest
|
| Manage your contests
|
||||||
|
.float-end
|
||||||
|
a.btn.btn-primary.mb-4 href=new_contest_path
|
||||||
|
| Create a new contest
|
||||||
|
|
||||||
.row.row-cols-1.row-cols-md-3.g-4
|
.row.row-cols-1.row-cols-md-3.g-4
|
||||||
- @contests.each do |contest|
|
- @contests.each do |contest|
|
||||||
.col
|
.col
|
||||||
|
css:
|
||||||
|
.card:hover { background-color: lightblue; }
|
||||||
.card.h-100
|
.card.h-100
|
||||||
.card-header
|
.card-header
|
||||||
= contest.name
|
= contest.name
|
||||||
.card-body
|
.card-body
|
||||||
p.card-text
|
.row
|
||||||
| Description text comes here.
|
- contest.puzzles.each do |puzzle|
|
||||||
a.btn.btn-primary href=contest_path(contest)
|
- if puzzle.image.attached?
|
||||||
| Open
|
.col
|
||||||
|
= image_tag puzzle.image, style: "max-height: 80px;"
|
||||||
|
a.stretched-link href=contest_path(contest)
|
Loading…
x
Reference in New Issue
Block a user