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

21 lines
680 B
Text
Raw Normal View History

2018-03-04 02:25:42 +00:00
{#
2016-10-02 13:41:05 +00:00
#
2014-07-31 01:10:10 +00:00
# @file
2016-10-02 13:41:05 +00:00
# This shows a topic and its siblings.
2014-07-31 01:10:10 +00:00
# URL: /topics/<topicid>
#
2018-03-04 02:25:42 +00:00
}
2018-03-04 02:25:42 +00:00
{ content_for :title, @topic.name + " | Metamaps" }
{ content_for :mobile_title, @topic.name }
<script>
2016-10-02 13:41:05 +00:00
Metamaps.currentSection = "topic"
2018-03-04 02:25:42 +00:00
Metamaps.currentPage = { @topic.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.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 }
2016-10-02 13:41:05 +00:00
Metamaps.ServerData.VisualizeType = "RGraph"
2016-08-01 17:38:57 +00:00
</script>