Fix login error
This commit is contained in:
parent
6f07ec802f
commit
4d32f9e7f0
@ -4,13 +4,14 @@ html
|
|||||||
|
|
||||||
body
|
body
|
||||||
.container.mt-5
|
.container.mt-5
|
||||||
.float-end style="margin-top: -8px;"
|
- if @current_user
|
||||||
nav.navbar.bg-body-primary
|
.float-end style="margin-top: -8px;"
|
||||||
a.navbar-brand href=contests_path
|
nav.navbar.bg-body-primary
|
||||||
| Home
|
a.navbar-brand href=contests_path
|
||||||
a.navbar-brand href=user_path(@current_user)
|
| Home
|
||||||
| Settings
|
a.navbar-brand href=user_path(@current_user)
|
||||||
= button_to "Log out", session_path, method: :delete
|
| 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