2013-01-11 23:49:59 +00: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.
|
2013-02-22 23:01:15 +00:00
|
|
|
# URL: /topics/<topicid>
|
2013-01-11 23:49:59 +00:00
|
|
|
#
|
|
|
|
#%>
|
|
|
|
|
2013-02-15 02:29:45 +00:00
|
|
|
<div class="headertop">
|
2013-03-22 01:33:42 +00:00
|
|
|
<button onclick="enterKeyPressed();">Keep Selected</button>
|
2013-02-15 02:29:45 +00:00
|
|
|
<% if authenticated? %>
|
|
|
|
<button onclick="saveToMap();">Save to Map</button>
|
|
|
|
<% end %>
|
2013-02-22 23:01:15 +00:00
|
|
|
<button onclick='clearCanvasExceptRoot();'>Clear Canvas</button>
|
2013-01-01 22:45:35 +00:00
|
|
|
</div>
|
2013-02-15 02:29:45 +00:00
|
|
|
<div class="clearfloat"></div>
|
2013-01-06 23:40:48 +00:00
|
|
|
|
|
|
|
<h1 class="index">
|
|
|
|
Viewing Topic: <%= @topic.name %>
|
|
|
|
</h1>
|
2013-01-01 22:45:35 +00:00
|
|
|
|
|
|
|
<div class="relatives" id="container">
|
|
|
|
<div id="center-container">
|
|
|
|
<div id="infovis"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
json = <%= @relatives %>;
|
|
|
|
console.log(json);
|
|
|
|
$(document).ready(function() {
|
|
|
|
initialize("centered");
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2013-02-17 00:23:36 +00:00
|
|
|
<!-- <%= render :partial => 'main/find' %> -->
|
2013-02-16 22:52:38 +00:00
|
|
|
<%= render :partial => 'main/analyze' %>
|
|
|
|
<%= render :partial => 'main/organize' %>
|
|
|
|
|
2013-01-01 22:45:35 +00:00
|
|
|
<% if authenticated? %>
|
|
|
|
<%= render :partial => 'topics/new' %>
|
2013-02-15 02:29:45 +00:00
|
|
|
<%= render :partial => 'synapses/new' %>
|
|
|
|
<%= render :partial => 'maps/new' %>
|
2013-01-01 22:45:35 +00:00
|
|
|
<% end %>
|
|
|
|
|