2016-02-03 13:38:41 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Main application file. Holds scaffolding present on every page.
|
|
|
|
# Then a certain non-partial view (no _ preceding filename) will be
|
|
|
|
# displayed within, based on URL
|
|
|
|
#%>
|
|
|
|
|
2016-03-25 04:26:07 +00:00
|
|
|
<%= render :partial => 'layouts/head' %>
|
2017-10-14 16:03:05 +00:00
|
|
|
<body class="<%= current_user ? "authenticated" : "unauthenticated" %> controller-<%= controller_name %> action-<%= action_name %>">
|
2017-03-16 21:58:56 +00:00
|
|
|
<div class="main" id="react-app"></div>
|
|
|
|
<%= yield %>
|
2017-10-14 16:03:05 +00:00
|
|
|
<% if current_user %>
|
2017-03-16 21:58:56 +00:00
|
|
|
<% # for creating and pulling in topics and synapses %>
|
|
|
|
<% if controller_name == 'maps' && action_name == "conversation" %>
|
|
|
|
<%= render :partial => 'maps/newtopicsecret' %>
|
|
|
|
<% else %>
|
|
|
|
<%= render :partial => 'maps/newtopic' %>
|
|
|
|
<% end %>
|
|
|
|
<%= render :partial => 'maps/newsynapse' %>
|
|
|
|
<% # for populating the change metacode list on the topic card %>
|
|
|
|
<%= render :partial => 'shared/metacodeoptions' %>
|
2016-02-03 13:38:41 +00:00
|
|
|
<% end %>
|
2016-03-25 04:26:07 +00:00
|
|
|
<%= render :partial => 'layouts/foot' %>
|