2013-01-11 18:49:59 -05:00
|
|
|
<%#
|
2014-07-30 21:10:10 -04:00
|
|
|
# @file
|
|
|
|
# This shows a topic view. It is used.
|
|
|
|
# The first commented out section used to be a card at the top showing all
|
|
|
|
# info. Now we're moving towards most screens looking the same. The
|
|
|
|
# consequence of accessing data from this view is that you can't remove
|
|
|
|
# the topic that corresponds to the page you're on. Originally, accessing this
|
|
|
|
# page showed the topic with its neighbours arrayed around. Now it shows the
|
|
|
|
# same, but there's no cues to say which topic's page you're on. So when the
|
|
|
|
# map recenters on a new topic, it's like you're on that topic's page.
|
|
|
|
# Nice, but the URL and being unable to remove the root node still hamper that
|
|
|
|
# experience.
|
|
|
|
# URL: /topics/<topicid>
|
|
|
|
#
|
|
|
|
#%>
|
2013-01-11 18:49:59 -05:00
|
|
|
|
2013-07-09 12:32:13 -04:00
|
|
|
<% content_for :title, @topic.name + " | Metamaps" %>
|
2013-01-01 17:45:35 -05:00
|
|
|
<script>
|
2014-08-11 18:57:34 -04:00
|
|
|
Metamaps.currentSection = "topic";
|
|
|
|
Metamaps.currentPage = <%= @topic.id.to_s %>;
|
2014-07-30 21:10:10 -04:00
|
|
|
Metamaps.Active.Topic = <%= @topic.to_json.html_safe %>;
|
2014-11-11 02:23:39 -05:00
|
|
|
Metamaps.Creators = <%= @allcreators.to_json.html_safe %>;
|
2014-07-30 21:10:10 -04:00
|
|
|
Metamaps.Topics = <%= @alltopics.to_json.html_safe %>;
|
|
|
|
Metamaps.Synapses = <%= @allsynapses.to_json.html_safe %>;
|
|
|
|
Metamaps.Visualize.type = "RGraph";
|
2016-08-01 13:38:57 -04:00
|
|
|
</script>
|