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

19 lines
616 B
Text
Raw Normal View History

<%#
2014-07-31 01:10:10 +00:00
# @file
# Code to display a map
# /maps/:id
#%>
<% content_for :title, @map.name + " | Metamaps" %>
<script>
2014-08-10 17:06:58 +00:00
Metamaps.currentSection = "map";
Metamaps.currentPage = <%= @map.id.to_s %>;
2014-07-31 01:10:10 +00:00
Metamaps.Active.Map = <%= @map.to_json.html_safe %>;
Metamaps.Mappers = <%= @allmappers.to_json.html_safe %>;
2014-07-31 01:10:10 +00:00
Metamaps.Topics = <%= @alltopics.to_json.html_safe %>;
Metamaps.Synapses = <%= @allsynapses.to_json.html_safe %>;
Metamaps.Mappings = <%= @allmappings.to_json.html_safe %>;
2015-12-11 19:23:41 +00:00
Metamaps.Messages = <%= @allmessages.to_json.html_safe %>;
2014-08-11 22:57:34 +00:00
Metamaps.Visualize.type = "ForceDirected";
2014-08-02 17:49:51 +00:00
</script>