metamaps--metamaps/views/layouts/application.html.erb

24 lines
934 B
Text
Raw Normal View History

2018-03-04 02:25:42 +00:00
{#
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
2018-03-04 02:25:42 +00:00
#}
2016-02-03 13:38:41 +00:00
2018-03-04 02:25:42 +00:00
{ render :partial => 'layouts/head' }
2018-03-05 17:33:16 +00:00
<body className="{ current_user ? "authenticated" : "unauthenticated" } controller-{ controller_name } action-{ action_name }">
<div className="main" id="react-app"></div>
2018-03-04 02:25:42 +00:00
{ yield }
{ if current_user }
{ # 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' }
{ end }
{ render :partial => 'layouts/foot' }