2021-03-20 14:23:06 +01:00
|
|
|
<h1>Welcome</h1>
|
2021-03-20 20:02:37 +01:00
|
|
|
<% if logged_in? %>
|
2021-03-20 22:37:38 +01:00
|
|
|
<h1>You are Logged In, <%= current_user.email %></h1>
|
2021-03-20 22:23:32 +01:00
|
|
|
<%= button_to "Logout", '/logout', method: :get%>
|
|
|
|
<%else%>
|
|
|
|
<%= button_to "Login", '/login', method: :get%>
|
|
|
|
<%= button_to "Sign Up", '/users/new', method: :get%>
|
2021-03-21 10:36:09 +01:00
|
|
|
<%= button_to "Password recovery", '/password_recovery', method: :get%>
|
2021-03-20 20:02:37 +01:00
|
|
|
<%end%>
|