metamaps--metamaps/views/topics/show.html.erb
2018-03-03 21:25:54 -05:00

20 lines
680 B
Text

{#
#
# @file
# This shows a topic and its siblings.
# URL: /topics/<topicid>
#
}
{ content_for :title, @topic.name + " | Metamaps" }
{ content_for :mobile_title, @topic.name }
<script>
Metamaps.currentSection = "topic"
Metamaps.currentPage = { @topic.id.to_s }
Metamaps.ServerData = Metamaps.ServerData || {}
Metamaps.ServerData.ActiveTopic = { @topic.to_json(user: current_user).html_safe }
Metamaps.ServerData.Creators = { @allcreators.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.VisualizeType = "RGraph"
</script>