Set container in layout
This commit is contained in:
parent
75b79ba53b
commit
1281df11ff
@ -1,24 +1,23 @@
|
|||||||
.container.mt-5
|
- if authenticated?
|
||||||
- if authenticated?
|
.float-end.ms-3
|
||||||
.float-end.ms-3
|
= button_to "Log out", session_path, method: :delete
|
||||||
= button_to "Log out", session_path, method: :delete
|
.float-end.mt-1
|
||||||
.float-end.mt-1
|
= link_to "Settings", user_path(@user)
|
||||||
= link_to "Settings", user_path(@user)
|
|
||||||
|
|
||||||
h1 Welcome!
|
h1 Welcome!
|
||||||
|
|
||||||
.alert.alert-primary role="alert"
|
.alert.alert-primary role="alert"
|
||||||
| This is a brand new website!
|
| This is a brand new website!
|
||||||
|
|
||||||
h4.mt-4 Manage your contests
|
h4.mt-4 Manage your contests
|
||||||
|
|
||||||
- @contests.each do |contest|
|
- @contests.each do |contest|
|
||||||
.card.mb-2
|
.card.mb-2
|
||||||
.card-body
|
.card-body
|
||||||
.card-title
|
.card-title
|
||||||
= contest.name
|
= contest.name
|
||||||
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
|
a.btn.btn-primary.mt-4 href=new_contest_path
|
||||||
| Create a new contest
|
| Create a new contest
|
@ -1,5 +1,4 @@
|
|||||||
.container.mt-5
|
h1 Contest: "#{@contest.name}"
|
||||||
h1 Contest: "#{@contest.name}"
|
|
||||||
|
|
||||||
a.btn.btn-primary href=root_path
|
a.btn.btn-primary href=root_path
|
||||||
| Back to all contests
|
| Back to all contests
|
@ -18,4 +18,5 @@ html
|
|||||||
= javascript_importmap_tags
|
= javascript_importmap_tags
|
||||||
|
|
||||||
body
|
body
|
||||||
= yield
|
.container.mt-5
|
||||||
|
= yield
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
.container
|
h1 Edit settings
|
||||||
h1 Edit settings
|
|
||||||
|
|
||||||
= render "form", user: @user
|
= render "form", user: @user
|
@ -1 +0,0 @@
|
|||||||
.container
|
|
@ -1,4 +1,3 @@
|
|||||||
.container
|
h1 Create a new user
|
||||||
h1 Create a new user
|
|
||||||
|
= render "form", user: @user
|
||||||
= render "form", user: @user
|
|
@ -1,9 +1,8 @@
|
|||||||
.container
|
h1 = @user.username
|
||||||
h1 = @user.username
|
|
||||||
|
|
||||||
p
|
p
|
||||||
|> Email:
|
|> Email:
|
||||||
= @user.email_address
|
= @user.email_address
|
||||||
|
|
||||||
a.btn.btn-primary.mt-4 href=edit_user_path(@user)
|
a.btn.btn-primary.mt-4 href=edit_user_path(@user)
|
||||||
| Edit
|
| Edit
|
Loading…
x
Reference in New Issue
Block a user