<% require_dependency 'static_maps_url_helper' %> <%= content_for(:page_title) do %><%= @table.name.gsub(/_/," ") %><% end %> <%= content_for(:description) do %><%= @table.description ? "#{@table.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, @table.table_visualization, 560, 300) %><% end %> <%= content_for(:facebook_card) do %><%= Carto::StaticMapsURLHelper.new.url_for_static_map(request, @table.table_visualization, 1200, 630) %><% end %> <%= content_for(:css) do %> <%= stylesheet_link_tag 'common_new', 'public_table_new', 'public_map_new' %> <% end %> <% content_for(:js) do %> <% if @table.map.provider == 'googlemaps' %> <%= insert_google_maps(@user.google_maps_query_string) %> <% end %> <%= javascript_include_tag 'common', 'common_vendor', 'public_table_new' %> <% end %> <%= content_for(:content) do %> <%= render 'admin/shared/public_header' %>
<%# Legacy from current embed %>

<%= @visualization.display_name_or_name %>

<% if @visualization.description.present? %>
<%= raw markdown_html_safe(@visualization.description) %>
<% end %>
  • <%= time_ago_in_words(@visualization.updated_at) %> ago
    <% if !@table.rows_counted.blank? %>
  • <% if @table.rows_counted < 10000 %> <%= number_with_delimiter(@table.rows_counted) %> <% else %> <%= number_to_human(@table.rows_counted, units: { unit:"", thousand: "K", million: "M" }, precision: 2, format: '%n%u') %> <% end %> <%= 'row'.pluralize(@table.rows_counted) %>
  • <% end %> <% if !@visualization.visualization.license_info.nil? %>
  • <%# Defaulting on CC icon for license https://github.com/CartoDB/cartodb/issues/6413 %> "> <%# Keep on one line to avoid unwanted spaces %> <%= @visualization.visualization.license_info.name %>
  • <% end %> <% if @visualization.visualization.source.present? %>
  • <%# Keep on one line to avoid unwanted spaces %> <%= raw markdown_html_safe(@visualization.source) %>
  • <% end %>
More info
<%# Related maps %> <% if @total_visualizations.count > 0 %>

Maps using this dataset

<% end %> <%# DISQUS %> <% if @table.owner.disqus_shortname.present? %>
<% end %> <% if cartodb_com_hosted? %> <%= render 'admin/shared/footer', :light => true %> <% else %> <%= render 'admin/shared/public_footer', :light => false %> <% end %> <% end %>