metamaps--metamaps/views/maps/show.html.erb

20 lines
836 B
Text
Raw Normal View History

2018-03-05 17:45:36 +00:00
2014-07-31 01:10:10 +00:00
2018-03-05 17:43:11 +00:00
<script>
2014-08-10 17:06:58 +00:00
Metamaps.currentSection = "map";
2018-03-04 02:25:42 +00:00
Metamaps.currentPage = { @map.id.to_s };
2016-10-02 13:41:05 +00:00
Metamaps.ServerData = Metamaps.ServerData || {}
2018-03-04 02:25:42 +00:00
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 };
Metamaps.ServerData.Messages = { @allmessages.to_json.html_safe };
Metamaps.ServerData.Stars = { @allstars.to_json.html_safe };
Metamaps.ServerData.requests = { @allrequests.to_json.html_safe };
Metamaps.ServerData.VisualizeType = "ForceDirected";
2014-08-02 17:49:51 +00:00
</script>