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

21 lines
701 B
Text
Raw Permalink Normal View History

<%#
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>
#
2016-10-02 13:41:05 +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"
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"
2016-08-01 17:38:57 +00:00
</script>