2016-03-25 00:16:27 +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' %>
|
2016-03-25 00:16:27 +00:00
|
|
|
|
|
|
|
<body class="<%= current_user ? 'authenticated' : 'unauthenticated' %>">
|
|
|
|
|
|
|
|
<% if devise_error_messages? %>
|
|
|
|
<p id="toast"><%= devise_error_messages! %></p>
|
|
|
|
<% elsif notice %>
|
|
|
|
<p id="toast"><%= notice %></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= content_tag :div, class: "main" do %>
|
|
|
|
|
|
|
|
<div class="wrapper" id="wrapper">
|
2016-03-25 04:26:07 +00:00
|
|
|
|
2016-03-25 00:16:27 +00:00
|
|
|
<%= render :partial => 'layouts/upperelements', :locals => {:appsPage => true } %>
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
|
2016-03-25 04:26:07 +00:00
|
|
|
<div class="showcard mapElement mapElementHidden" id="showcard"></div> <!-- the topic card -->
|
|
|
|
<% if current_user %>
|
|
|
|
<% # for creating and pulling in topics and synapses %>
|
|
|
|
<%= render :partial => 'maps/newtopic' %>
|
|
|
|
<%= render :partial => 'maps/newsynapse' %>
|
|
|
|
<% # for populating the change metacode list on the topic card %>
|
|
|
|
<%= render :partial => 'shared/metacodeoptions' %>
|
|
|
|
<% end %>
|
|
|
|
<%= render :partial => 'layouts/lowermapelements' %>
|
|
|
|
|
2016-08-01 19:33:41 +00:00
|
|
|
<div id="exploreMapsHeader"></div>
|
2016-03-25 00:16:27 +00:00
|
|
|
<div id="loading"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
2016-03-25 04:26:07 +00:00
|
|
|
<%= render :partial => 'layouts/foot' %>
|