<%= 'data-router=true' %><% end %>>METAMAPS
<% request = current_user && @map && @allrequests.find{|a| a.user == current_user} className = (@map and not policy(@map).update?) ? 'isViewOnly ' : '' if @map className += 'sendRequest' if not request className += 'sentRequest' if request and not request.answered className += 'requestDenied' if request and request.answered and not request.approved end %>
View Only
<% if current_user %>
Request Access
Request Pending
Request Not Accepted
<% end %>
<% if current_user %>
Import Data
<% end %>
Filter
<%= render :partial => 'shared/filterBox' %>
<% if current_user %>
Save To New Map
<% end %>
<% if current_user %>
Create New Map
<% end %> <% if !(controller_name == "sessions" && action_name == "new") %>
<% if user_has_unread_notifications? %>
<% end %>
Account
<% if current_user && current_user.image %> <%= image_tag current_user.image.url(:thirtytwo), :size => "32x32" %> <% elsif !current_user %> SIGN IN
<% end %>
<%= render :partial => 'layouts/account' %>
<% end %>