<% 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(:css) do %> <%= render :partial => 'admin/visualizations/public/embed_map_inline_css' %> <% end %> <%= content_for(:body_class) do %> embed-map <% end %> <%= content_for(:content) do %> <% if @visualization.public? || @visualization.public_with_link? || @visualization.password_protected? || @visualization.organization? %>
Map created by <% username = @visualization.user.name_or_username %> <% if !@visualization.user.avatar_url.blank? %> <%= username %> <% end %> <%= username %>
<% end %> <% end %> <%= content_for(:js) do %> <%= insert_trackjs('embeds', Cartodb.get_config(:trackjs, 'frequency')) %> <%= render :partial => 'admin/visualizations/public/embed_map_inline_js' %> <% end %>