48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Find Us Lunch</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 class="navbar navbar-default navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/">Find Us Lunch</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><%= link_to 'Home', root_path %></li>
|
|
<% if current_user %>
|
|
<li><%= link_to 'Friends', friendships_path %></li>
|
|
<li><%= link_to 'Lunches', lunches_path %></li>
|
|
<li><%= link_to 'Users', users_path %></li>
|
|
<% end %>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<% if current_user %>
|
|
<li><%= link_to 'Logout', logout_path, id: 'logout' %></li>
|
|
<% else %>
|
|
<li><%= link_to 'Login with Google', '/auth/google_oauth2', id: 'login' %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<%= render 'flash_messages', flash: flash %>
|
|
<%= yield %>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|