1
0
Fork 0
find-us-lunch/app/views/layouts/application.html.erb

49 lines
1.5 KiB
Text
Raw Normal View History

2014-10-02 16:10:36 -04:00
<!DOCTYPE html>
<html>
<head>
2014-10-27 12:16:50 -04:00
<title>Find Us Lunch</title>
2014-10-02 16:10:36 -04:00
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
2014-10-02 17:06:30 -04:00
<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>
2014-10-15 16:46:36 -04:00
<% if current_user %>
2014-10-27 12:16:50 -04:00
<li><%= link_to 'Friends', friendships_path %></li>
2014-11-06 13:52:28 -05:00
<li><%= link_to 'Lunches', lunches_path %></li>
2014-10-15 16:46:36 -04:00
<li><%= link_to 'Users', users_path %></li>
<% end %>
2014-10-02 17:06:30 -04:00
</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>
2014-10-02 16:47:15 -04:00
</div>
2014-10-02 17:06:30 -04:00
<div class="container">
2014-10-15 13:50:58 -04:00
<%= render 'flash_messages', flash: flash %>
2014-10-02 17:06:30 -04:00
<%= yield %>
</div>
2014-10-02 16:10:36 -04:00
</body>
</html>