2012-10-26 10:04:52 +00:00
|
|
|
<div class="focus">
|
|
|
|
<div class="focusleft">
|
|
|
|
<p># of Topics: <%= @map.items.count %></p>
|
|
|
|
<p># of Synapses: <%= @map.synapses.count %></p>
|
2012-12-01 23:05:17 +00:00
|
|
|
<% if (@map.permission == "commons" && authenticated?) || @map.user == user %>
|
|
|
|
<%= form_for @map, :url => savelayout_path(@user,@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 %>
|
2012-10-26 10:04:52 +00:00
|
|
|
</div>
|
|
|
|
<div class="focusmiddle">
|
2012-10-29 18:21:36 +00:00
|
|
|
<h1 class="title"><%= @map.name %> <% if (@map.permission == "commons" && authenticated?) || @map.user == user %><%= link_to "[edit]", edit_user_map_path(@user, @map) %><% end %></h1>
|
2012-10-26 10:04:52 +00:00
|
|
|
<div class="desc">
|
|
|
|
<p><%= @map.desc %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="focusright">
|
2012-10-29 18:21:36 +00:00
|
|
|
<div class="link"><p>Permissions: <%= @map.permission %></p></div>
|
2012-10-26 10:04:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat nodemargin"></div>
|
|
|
|
|
|
|
|
<div class="maps" id="container">
|
|
|
|
<div id="center-container">
|
|
|
|
<div id="infovis"></div>
|
|
|
|
</div>
|
|
|
|
<div id="showcard">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
json = <%= @mapjson %>;
|
|
|
|
if (json.length > 0) {
|
|
|
|
$(document).ready(function() {
|
2012-12-03 23:40:14 +00:00
|
|
|
<% if (@map.arranged) %>
|
|
|
|
initMAP();
|
|
|
|
<% else %>
|
|
|
|
initFD();
|
|
|
|
<% end %>
|
2012-10-26 10:04:52 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<%= render :partial => 'newtopic' %>
|
2012-12-01 23:05:17 +00:00
|
|
|
<%= render :partial => 'newsynapse' %>
|