<%# # @file # Code to display a map # /maps/:id #%> <% content_for :title, @map.name + " | Metamaps" %>
<% if authenticated? %> <% if (@map.permission == "commons" && authenticated?) || @map.user == user %> <% end %> <% if (@map.permission == "commons" && authenticated?) || @map.user == user %> <%= form_for @map, :url => savelayout_path(@map), :html => { :class => "saveMapLayout", :id => "saveMapLayout"}, remote: true do |form| %> <%= form.hidden_field "coordinates", :value => "" %> <%= form.submit "Save Layout", class: "saveLayout", id: "saveLayout" %> <% end %> <% end %> <% end %>

<% if (@map.permission == "commons" && authenticated?) || @map.user == user %> Editing Map: <% else %> Viewing Map: <% end %> <%= @map.name %> <% if (@map.permission == "commons" && authenticated?) || @map.user == user %> <%= link_to "[edit]", edit_map_path(@map) %> <% end %>

<% if authenticated? %> <%= render :partial => 'newtopic' %> <%= render :partial => 'newsynapse' %> <%= render :partial => 'maps/new' %> <% end %> <%= render :partial => 'main/find' %>