1
0
Fork 0
find-us-lunch/app/views/layouts/application.html.erb
2014-10-02 16:47:15 -04:00

23 lines
521 B
Text

<!DOCTYPE html>
<html>
<head>
<title>Finduslunch</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<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 %>
</body>
</html>