<%# # @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" %> <% if (controller_name == "maps" || controller_name == "topics") && action_name == "show" %> <%= javascript_include_tag "compileMapPages" %> <% end %> <%= csrf_meta_tags %> " > <% if notice %>

<%= notice %>

<% end %> <% if alert %>

<%= alert %>

<% end %> <%= content_tag :div, class: authenticated? ? "main authenticated" : "main unauthenticated" do %>
" id="wrapper">
<%= render :partial => 'layouts/templates' %>
<% if user && user.image %><%= image_tag user.image.url(:thumb), :size => "35x35" %><% end %>
<%= render :partial => 'layouts/account' %>
<%= yield %>
<% end %> <%= render :partial => 'layouts/lightboxes' %> <%= render :partial => 'layouts/ga' if Rails.env.production? %>