2013-01-11 18:49:59 -05:00
|
|
|
<%#
|
2014-07-30 21:10:10 -04:00
|
|
|
# @file
|
|
|
|
# Code to display a map
|
|
|
|
# /maps/:id
|
|
|
|
#%>
|
|
|
|
|
2013-07-09 12:32:13 -04:00
|
|
|
<% content_for :title, @map.name + " | Metamaps" %>
|
2016-08-12 04:04:18 +00:00
|
|
|
<% content_for :mobile_title, @map.name %>
|
2013-01-04 21:39:16 -05:00
|
|
|
<script>
|
2014-08-10 13:06:58 -04:00
|
|
|
Metamaps.currentSection = "map";
|
|
|
|
Metamaps.currentPage = <%= @map.id.to_s %>;
|
2016-10-02 21:41:05 +08:00
|
|
|
Metamaps.ServerData = Metamaps.ServerData || {}
|
|
|
|
Metamaps.ServerData.ActiveMap = <%= @map.to_json.html_safe %>;
|
|
|
|
Metamaps.ServerData.Mappers = <%= @allmappers.to_json.html_safe %>;
|
|
|
|
Metamaps.ServerData.Collaborators = <%= @allcollaborators.to_json.html_safe %>;
|
|
|
|
Metamaps.ServerData.Topics = <%= @alltopics.to_json(user: current_user).html_safe %>;
|
|
|
|
Metamaps.ServerData.Synapses = <%= @allsynapses.to_json.html_safe %>;
|
|
|
|
Metamaps.ServerData.Mappings = <%= @allmappings.to_json.html_safe %>;
|
2016-10-03 08:32:37 +08:00
|
|
|
Metamaps.ServerData.Messages = <%= @allmessages.to_json.html_safe %>;
|
|
|
|
Metamaps.ServerData.Stars = <%= @allstars.to_json.html_safe %>;
|
2016-10-02 22:28:00 +08:00
|
|
|
Metamaps.ServerData.VisualizeType = "ForceDirected";
|
2014-08-02 13:49:51 -04:00
|
|
|
</script>
|