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

19 lines
572 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" %>
2013-01-06 23:40:48 +00:00
<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.Metacodes = <%= @allmetacodes.to_json.html_safe %>;
Metamaps.Topics = <%= @alltopics.to_json.html_safe %>;
Metamaps.Synapses = <%= @allsynapses.to_json.html_safe %>;
Metamaps.Mappings = <%= @allmappings.to_json.html_safe %>;
2014-08-02 17:49:51 +00:00
</script>