%# # @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 #%>
<%= devise_error_messages! %>
<% elsif notice %><%= notice %>
<% end %> <%= content_tag :div, class: authenticated? ? "main authenticated" : "main unauthenticated" do %> <% classes = action_name == "home" ? "homePage" : "" classes += action_name == "home" && authenticated? ? " explorePage" : "" classes += controller_name == "maps" && action_name == "index" ? " explorePage" : "" if controller_name == "maps" && action_name == "show" classes += " mapPage" if @map.authorize_to_edit(current_user) classes += " canEditMap" end if @map.permission == "commons" classes += " commonsMap" end end classes += controller_name == "topics" && action_name == "show" ? " topicPage" : "" %>