Compare commits
2 Commits
64109cdfd3
...
1dbb495c3b
Author | SHA1 | Date | |
---|---|---|---|
1dbb495c3b | |||
e756dbcad9 |
@ -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
|
|
||||||
= contest.name
|
|
||||||
a.btn.btn-primary href=contest_path(contest)
|
|
||||||
| Open
|
|
||||||
|
|
||||||
a.btn.btn-primary.mt-4 href=new_contest_path
|
.row.row-cols-1.row-cols-md-3.g-4
|
||||||
| Create a new contest
|
- @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
|
@ -4,12 +4,13 @@ html
|
|||||||
|
|
||||||
body
|
body
|
||||||
.container.mt-5
|
.container.mt-5
|
||||||
.float-end.mt-1.ms-3
|
.float-end style="margin-top: -8px;"
|
||||||
= button_to "Log out", session_path, method: :delete
|
nav.navbar.bg-body-primary
|
||||||
.float-end.mt-2.ms-3
|
a.navbar-brand href=contests_path
|
||||||
= link_to "Settings", user_path(@current_user)
|
| Home
|
||||||
.float-end.mt-2
|
a.navbar-brand href=user_path(@current_user)
|
||||||
= link_to "Home", contests_path
|
| Settings
|
||||||
|
= button_to "Log out", session_path, method: :delete
|
||||||
|
|
||||||
h1.mb-4 = @title
|
h1.mb-4 = @title
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user