cartodb/app/views/admin/pages/public_maps.html.erb

27 lines
996 B
Plaintext
Raw Normal View History

2020-07-10 22:20:41 +08:00
<%= content_for(:title) do %>快点 · <%= @name %> 地图<% end %>
2020-06-15 10:58:47 +08:00
<%= content_for(:description) do %><%= @page_description %><% end %>
<div class="CDB-Text PublicBody-content">
<% if @visualizations.size == 0 %>
<%= render 'admin/shared/no_results', is_maps: true, alt_url: CartoDB.url(self, 'public_datasets_home') %>
<% else %>
<ul class="MapsList">
<% @visualizations.each do |vis| %>
<%= render 'shared/mapcard', vis: vis %>
<% end %>
<%# at most 3 cards per line, visbility is handled by CSS depending on viewport size %>
<% ((3 - @visualizations.size + 3) % 3).times.each do %>
<li class="MapsList-item MapsList-item--fake">
<div class="MapCard MapCard--squared MapCard--borderless">
<div class="MapCard-header MapCard-header--fake"></div>
<div class="MapCard-content"></div>
</div>
</li>
<% end %>
</ul>
<% end %>
</div>
<%= render 'admin/pages/shared/pagination' %>