2021-03-21 22:31:58 +01:00
|
|
|
<div class='container'>
|
|
|
|
<h4>Welcome</h4>
|
|
|
|
<% if logged_in? %>
|
|
|
|
You are Logged In, <%= current_user.email %>
|
|
|
|
<%= button_to "Logout", '/logout', method: :get, class: 'btn' %>
|
|
|
|
<% else %>
|
|
|
|
<%= button_to "Login", '/login', method: :get, class: 'btn' %>
|
|
|
|
<%= button_to "Sign Up", '/users/new', method: :get, class: 'btn' %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|