2017-03-16 21:58:56 +00:00
|
|
|
<div id="loading"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
Metamaps.ServerData.unreadNotificationsCount = <%= current_user ? user_unread_notification_count : 0 %>
|
|
|
|
Metamaps.ServerData.mapIsStarred = <%= current_user && @map && current_user.starred_map?(@map) ? true : false %>
|
|
|
|
Metamaps.ServerData.mobileTitle = "<%= yield(:mobile_title) %>"
|
|
|
|
Metamaps.ServerData.ActiveMapper = <%= current_user ? current_user.to_json({follows: true, email: true, follow_settings: true}).html_safe : nil %>
|
|
|
|
<% if devise_error_messages? %>
|
|
|
|
Metamaps.ServerData.toast = "<%= devise_error_messages! %>"
|
|
|
|
<% elsif notice %>
|
|
|
|
Metamaps.ServerData.toast = "<%= notice %>"
|
|
|
|
<% elsif alert %>
|
|
|
|
Metamaps.ServerData.toast = "<%= alert %>"
|
2016-10-02 13:10:41 +00:00
|
|
|
<% end %>
|
|
|
|
Metamaps.Loading.setup()
|
2016-03-25 04:26:07 +00:00
|
|
|
</script>
|
2017-03-16 21:58:56 +00:00
|
|
|
<%= render :partial => 'layouts/lightboxes' %>
|
|
|
|
<%= render :partial => 'layouts/templates' %>
|
2017-09-12 21:01:08 +00:00
|
|
|
<%= render :partial => 'shared/metacodeCssColors' %>
|
2017-01-04 17:08:12 +00:00
|
|
|
<%= render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? %>
|
2016-03-25 04:26:07 +00:00
|
|
|
</body>
|
|
|
|
</html>
|