<%# # @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 authenticated? %> <%= render :partial => 'newtopic' %> <%= render :partial => 'newsynapse' %> <% end %>