<% require_dependency 'static_maps_url_helper' %> <%= content_for(:title) do %><%= @visualization.name %><% end %> <%= content_for(:description) do %><%= @visualization.description.present? ? "#{markdown_html_clean(@visualization.description)} — Map created by #{@name} in CARTO" : "Map created by #{@name} in CARTO" %><% end %> <%= content_for(:twitter_card) do %><%= Carto::StaticMapsURLHelper.new.url_for_static_map(request, @visualization, 560, 300) %><% end %> <%= content_for(:facebook_card) do %><%= Carto::StaticMapsURLHelper.new.url_for_static_map(request, @visualization, 1200, 630) %><% end %> <%= content_for(:body_class) do %> PublicMap <% end %> <%= content_for(:css) do %> <%= editor_stylesheet_link_tag 'cartodb', 'common', 'public_map' %> <% end %> <%= content_for(:content) do %> <% if @visualization.is_accesible_by_user?(current_user) %> <%= render 'admin/shared/public_header' %>
<%# Legacy from current embed %>

<%= @visualization.name %>

<% if @visualization.description.present? %>
<%= raw markdown_html_safe(@visualization.description) %>
<% end %>
  • <%= time_ago_in_words(@visualization.updated_at) %> ago
  • <%= number_with_delimiter(@mapviews) %> <%= 'mapview'.pluralize(@mapviews) %>
  • <% if @visualization.tags.size > 0 %>
  • <%# Keep on one line to avoid unwanted spaces %> <% formatted_tags(@visualization.tags) do |tag| %><%= tag %><% end %>
  • <% end %>
More info
<%# Datasets %>

Datasets in use

    <% if @related_canonical_visualizations.present? %> <% @related_canonical_visualizations.each do |vis| %> <% if vis.privacy == "public" %>
  • <%= vis.user_table.name %>

    <% if vis.description %>
    <%= raw markdown_html_safe(vis.description) %>
    <% end %>
    <%= vis.privacy %> <% if (vis.user_table.service.rows_counted) %> <%= "#{number_to_human(vis.user_table.service.rows_counted, format: "%n%u", units: { unit: "", thousand: "K", million: "M" }, delimiter: ",")} row#{vis.user_table.service.rows_counted.size == 1 ? "" : "s"}" %> <% end %> <%= time_ago_in_words(vis.updated_at) %> ago <% if vis.user.username != @visualization.user.username %> by <%= vis.user.name_or_username %> <% end %>
  • <% end %> <% end %> <% end %> <% if @nonpublic_tables_count.present? && @nonpublic_tables_count > 0 %>
  • <%= pluralize(@nonpublic_tables_count, 'private dataset') %>
  • <% end %>
<%# DISQUS %> <% if @visualization.user.disqus_shortname.present? %>
<% end %> <%# Related %> <% if @more_visualizations && @more_visualizations.count > 0 %>

More from <%= @name %>

<% end %>
<% if cartodb_com_hosted? %> <%= render 'admin/shared/footer', :light => true %> <% else %> <%= render 'admin/shared/public_footer', :light => false %> <% end %> <% end %> <% end %> <%= content_for(:js) do %> <%= insert_trackjs('embeds', Cartodb.get_config(:trackjs, 'frequency')) %> <% if @visualization.map.provider == 'googlemaps' %> <%= insert_google_maps(@visualization.user.google_maps_query_string) %> <% end %> <%= editor_javascript_include_tag 'cdb.js', 'templates.js', 'public_map_deps', 'public_map' %> <% end %>