From 4e9168bc5fdc7bc2adaf6663f185d196821e0f9a Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 2 Oct 2014 16:47:15 -0400 Subject: [PATCH] User view --- app/views/layouts/application.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5dcb1cb..112cd5a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,6 +8,15 @@ +
+<% if current_user %> + Welcome, <%= current_user.name %>! + <%= link_to 'Logout', logout_path, id: 'logout' %> +<% else %> + <%= link_to 'Login with Google', '/auth/google_oauth2', id: 'login' %> +<% end %> +
+ <%= yield %>