19dabe81cc
* enable starring * users should be able to star others maps * proper star icon * starred maps display as starred without refreshing * oops * make phrasing clearer
21 lines
789 B
Text
21 lines
789 B
Text
<%#
|
|
# @file
|
|
# Code to display a map
|
|
# /maps/:id
|
|
#%>
|
|
|
|
<% content_for :title, @map.name + " | Metamaps" %>
|
|
<% content_for :mobile_title, @map.name %>
|
|
<script>
|
|
Metamaps.currentSection = "map";
|
|
Metamaps.currentPage = <%= @map.id.to_s %>;
|
|
Metamaps.Active.Map = <%= @map.to_json.html_safe %>;
|
|
Metamaps.Mappers = <%= @allmappers.to_json.html_safe %>;
|
|
Metamaps.Collaborators = <%= @allcollaborators.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 %>;
|
|
Metamaps.Messages = <%= @allmessages.to_json.html_safe %>;
|
|
Metamaps.Stars = <%= @allstars.to_json.html_safe %>;
|
|
Metamaps.Visualize.type = "ForceDirected";
|
|
</script>
|