<%# # @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 #%> <%=h yield(:title) %> <% if authenticated? %> <% else %> <% end %> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <% if notice %>

<%= notice %>

<% end %> <% if alert %>

<%= alert %>

<% end %> <%= content_tag :div, class: authenticated? ? "main authenticated" : "main unauthenticated" do %>
<%= render :partial => 'layouts/searchtemplates' %>
<%= render :partial => 'layouts/account' %>
<%= yield %>
<% end %> <% if authenticated? %> <% # this is the create new map form %> <%= render :partial => 'maps/new' %> <% end %> <%= render :partial => 'layouts/lightboxes' %> <%= render :partial => 'layouts/ga' if Rails.env.production? %>