metamaps--metamaps/app/views/layouts/_mobilemenu.html.erb

58 lines
1.5 KiB
Text
Raw Permalink Normal View History

2016-08-12 04:04:18 +00:00
<div id="mobile_header">
<div id="header_content">
<%= yield(:mobile_title) %>
</div>
<div id="menu_icon"></div>
</div>
<div id="mobile_menu">
<ul>
<% if not current_user %>
<li>
<%= link_to "Home", root_path %>
2016-08-12 04:04:18 +00:00
</li>
<% end %>
<% if current_user %>
<li class="mobileMenuUser">
<%= image_tag current_user.image.url(:sixtyfour), :size => "32x32" %>
<span><%= current_user.name %></span>
2016-08-12 04:04:18 +00:00
</li>
<li>
<%= link_to "New Map", new_map_path %>
</li>
2016-08-12 04:04:18 +00:00
<li>
<%= link_to "My Maps", explore_mine_path, :data => { :router => 'true'} %>
2016-08-12 04:04:18 +00:00
</li>
<li>
<%= link_to "Shared With Me", explore_shared_path, :data => { :router => 'true'} %>
2016-08-12 04:04:18 +00:00
</li>
2016-08-31 22:57:19 +00:00
<li>
<%= link_to "Starred By Me", explore_starred_path, :data => { :router => 'true'} %>
</li>
2016-08-12 04:04:18 +00:00
<% end %>
<li>
2016-10-17 14:53:33 +00:00
<%= link_to "All Maps", explore_active_path, :data => { :router => 'true'} %>
2016-08-12 04:04:18 +00:00
</li>
<% if not current_user %>
<li>
<%= link_to "Featured Maps", explore_featured_path, :data => { :router => 'true'} %>
2016-08-12 04:04:18 +00:00
</li>
<% end %>
<% if not current_user %>
<li>
<%= link_to "Request Invite", request_path %>
2016-08-12 04:04:18 +00:00
</li>
<li>
2016-10-19 04:40:52 +00:00
<%= link_to "Login", sign_in_path %>
2016-08-12 04:04:18 +00:00
</li>
<% end %>
<% if current_user %>
<li>
<%= link_to "Account", edit_user_url(current_user) %>
2016-08-12 04:04:18 +00:00
</li>
<li>
<%= link_to "Sign Out", "/logout", id: "Logout" %>
2016-08-12 04:04:18 +00:00
</li>
<% end %>
</ul>
2016-08-31 22:57:19 +00:00
</div>