% 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' %>