cartodb/app/views/layouts/explore.html.erb

50 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<%= favicon_link_tag "favicons/favicon.ico" %>
<title><%= yield :title %></title>
<meta name="description" content="<%= yield :description %>">
<meta name="keywords" content="carto, maps, data visualization tools, big data, location intelligence, deep insights, datasets">
<meta name="author" content="<%= @name %>">
<meta charset='utf-8' />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta property="og:title" content="<%= yield :title %>" />
<meta property="og:description" content="<%= yield :description %>" />
<meta property="og:type" content="visualization" />
<meta property="og:url" content="<%= request.original_url %>" />
<meta property="og:image" content="<%= @avatar_url %>" />
<%= editor_stylesheet_link_tag 'cartodb', 'common', 'public_dashboard', 'user_feed', 'explore' %>
<%= insert_google_tag_manager('primary') %>
</head>
<body class="CDB-Text PublicBody PublicBody--grey">
<%= insert_google_tag_manager_no_script('primary') %>
<%= render 'admin/shared/public_header' %>
<div class="FavMap FavMap--tall FavMap--highShadow is-pre-loading" id="<%= fav_map_target_id = 'fav-map-container' %>">
<div class="FavMapTitle is-hidden js-favMapTitle">
<div class="FavMapTitle-inner">
<h3 class="FavMapTitle-sectionTitle js-sectionTitle">Map of the moment</h3>
<h1 class="FavMapTitle-mapTitle"><a href="#" class="FavMapTitle-mapTitleLink js-mapTitle"></a></h1>
</div>
</div>
<div class="Spinner FavMap-spinner js-spinner"></div>
</div>
<%= yield %>
<%= render 'admin/shared/public_footer', :light => true %>
<script type="text/javascript">
var config = <%= safe_js_object frontend_config_public({https_apis: request.protocol == 'https://' }) %>;
var account_host = '<%= CartoDB.account_host %>';
var base_url = '<%= @base_url %>';
var login_url = "<%= CartoDB.url(self, 'login') %>";
var avatar_url= '<%= @avatar_url %>';
</script>
<%= insert_trackjs() %>
<%= editor_javascript_include_tag 'cdb.js', 'templates', 'explore_deps', 'explore' %>
<%= yield :js %>
</body>
</html>