User view
This commit is contained in:
parent
df80ce9062
commit
4e9168bc5f
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<% 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 %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue