Organise with layouts
This commit is contained in:
16
app/views/layouts/authenticated.html.slim
Normal file
16
app/views/layouts/authenticated.html.slim
Normal file
@@ -0,0 +1,16 @@
|
||||
doctype html
|
||||
html
|
||||
= render "layouts/header"
|
||||
|
||||
body
|
||||
.container.mt-5
|
||||
.float-end.ms-3
|
||||
= button_to "Log out", session_path, method: :delete
|
||||
.float-end.mt-1.ms-3
|
||||
= link_to "Settings", user_path(@current_user)
|
||||
.float-end.mt-1
|
||||
= link_to "Home", contests_path
|
||||
|
||||
h1 = @title
|
||||
|
||||
= yield
|
||||
Reference in New Issue
Block a user