diff --git a/lib/recycledcloud_web/router.ex b/lib/recycledcloud_web/router.ex
index 157679b..74b72a6 100644
--- a/lib/recycledcloud_web/router.ex
+++ b/lib/recycledcloud_web/router.ex
@@ -53,6 +53,7 @@ defmodule RecycledCloudWeb.Router do
scope "/", RecycledCloudWeb do
pipe_through [:browser]
+ get "/users/log_out", UserSessionController, :delete
delete "/users/log_out", UserSessionController, :delete
get "/users/confirm", UserConfirmationController, :new
post "/users/confirm", UserConfirmationController, :create
diff --git a/lib/recycledcloud_web/templates/layout/_sidebar_nav.html.eex b/lib/recycledcloud_web/templates/layout/_sidebar_nav.html.eex
new file mode 100644
index 0000000..9c64679
--- /dev/null
+++ b/lib/recycledcloud_web/templates/layout/_sidebar_nav.html.eex
@@ -0,0 +1,17 @@
+
+ - <%= link "Home", to: Routes.page_path(@conn, :index) %>
+
+ <%= if @current_user do %>
+ - <%= @current_user.email %>
+ - <%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %>
+ - <%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %>
+ <% else %>
+ - <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
+ - <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
+ <% end %>
+
+ -
+
+ Back to recycled.cloud ↵
+
+
diff --git a/lib/recycledcloud_web/templates/layout/_user_menu.html.eex b/lib/recycledcloud_web/templates/layout/_user_menu.html.eex
deleted file mode 100644
index f281cfc..0000000
--- a/lib/recycledcloud_web/templates/layout/_user_menu.html.eex
+++ /dev/null
@@ -1,10 +0,0 @@
-
-<%= if @current_user do %>
- - <%= @current_user.email %>
- - <%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %>
- - <%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %>
-<% else %>
- - <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
- - <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
-<% end %>
-
diff --git a/lib/recycledcloud_web/templates/layout/app.html.eex b/lib/recycledcloud_web/templates/layout/app.html.eex
index 5c835b0..581298e 100644
--- a/lib/recycledcloud_web/templates/layout/app.html.eex
+++ b/lib/recycledcloud_web/templates/layout/app.html.eex
@@ -4,29 +4,28 @@
- RecycledCloud · Phoenix Framework
+ RecycledCloud · Management
"/>
-
-
-
- <%= get_flash(@conn, :info) %>
- <%= get_flash(@conn, :error) %>
- <%= @inner_content %>
-
+
+
+
+ <%= render "_sidebar_nav.html", assigns %>
+
+
+
+ <%= if get_flash(@conn, :info) do %>
+ <%= get_flash(@conn, :info) %>
+ <% end %>
+ <%= if get_flash(@conn, :error) do %>
+ <%= get_flash(@conn, :error) %>
+ <% end %>
+
+ <%= @inner_content %>
+
+
+
+