2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
2014-07-31 01:10:10 +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.
|
|
|
|
# URL: /topics/<topicid>
|
|
|
|
#
|
|
|
|
#%>
|
2013-01-11 23:49:59 +00:00
|
|
|
|
2013-07-09 16:32:13 +00:00
|
|
|
<% content_for :title, @topic.name + " | Metamaps" %>
|
2014-07-31 01:10:10 +00:00
|
|
|
|
2014-01-31 00:32:15 +00:00
|
|
|
<% if authenticated? %>
|
2014-02-09 15:05:32 +00:00
|
|
|
<div class="sidebarFork">
|
2014-07-31 01:10:10 +00:00
|
|
|
<div class="sidebarForkIcon">
|
|
|
|
</div>
|
|
|
|
<div class="sidebarForkBox"></div>
|
2013-01-01 22:45:35 +00:00
|
|
|
</div>
|
2014-01-31 00:32:15 +00:00
|
|
|
<% end %>
|
2014-02-01 08:57:19 +00:00
|
|
|
<div class="sidebarFilter <%= authenticated? ? 'loggedin' : 'loggedout' %>">
|
2014-07-31 01:10:10 +00:00
|
|
|
<div class="sidebarFilterIcon"></div>
|
|
|
|
<div class="sidebarFilterBox">
|
|
|
|
<h3 class="filterByMetacode">Filter By Metacode</h3><span class="showAll">all</span><span class="hideAll">none</span>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
<%= render :partial => 'shared/filterbymetacode' %>
|
|
|
|
</div>
|
2014-02-01 08:57:19 +00:00
|
|
|
</div>
|
2013-01-06 23:40:48 +00:00
|
|
|
|
2014-01-29 03:46:58 +00:00
|
|
|
<div class="index">
|
2014-07-31 01:10:10 +00:00
|
|
|
<div class="openCheatsheet openLightbox" data-open="cheatsheet"></div>
|
|
|
|
<span class="mapInfo"></span>
|
|
|
|
<div class="clearfloat"></div>
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|
2013-01-01 22:45:35 +00:00
|
|
|
|
|
|
|
<div class="relatives" id="container">
|
2014-07-31 01:10:10 +00:00
|
|
|
<div id="center-container">
|
|
|
|
<div id="infovis"></div>
|
|
|
|
</div>
|
|
|
|
<div class="showcard" id="showcard"></div>
|
2013-01-01 22:45:35 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
|
2014-02-09 23:54:45 +00:00
|
|
|
<% if authenticated? %>
|
2014-07-31 01:10:10 +00:00
|
|
|
<%= render :partial => 'topics/new' %>
|
|
|
|
<%= render :partial => 'synapses/new' %>
|
|
|
|
<%= render :partial => 'shared/metacodeoptions' %>
|
2014-02-09 23:54:45 +00:00
|
|
|
<% end %>
|
|
|
|
|
2013-01-01 22:45:35 +00:00
|
|
|
<script>
|
2014-07-31 01:10:10 +00:00
|
|
|
Metamaps.Active.Topic = <%= @topic.to_json.html_safe %>;
|
|
|
|
Metamaps.Metacodes = <%= @allmetacodes.to_json.html_safe %>;
|
|
|
|
Metamaps.Topics = <%= @alltopics.to_json.html_safe %>;
|
|
|
|
Metamaps.Synapses = <%= @allsynapses.to_json.html_safe %>;
|
|
|
|
Metamaps.Mappings = null;
|
|
|
|
Metamaps.Visualize.type = "RGraph";
|
2014-02-09 23:54:45 +00:00
|
|
|
</script>
|