cartodb/app/views/admin/shared/_no_results.html.erb

13 lines
826 B
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +08:00
<div class="IntermediateInfo">
<div class="LayoutIcon">
<i class="CDB-IconFont CDB-IconFont-map"></i>
</div>
<% if @total_count > 0 %>
<h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m u-tSpace-xl"><%= @name %> doesn't have any items on this page</h3>
<p class="CDB-Text CDB-Size-medium u-altTextColor">Try the <%= link_to 'first page', @first_page_url %> instead</p>
<% else %>
<h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m u-tSpace-xl"><%= @name %> doesn't have any public <%= @content_type === 'maps' ? 'maps' : 'datasets' %> yet</h3>
<p class="CDB-Text CDB-Size-medium u-altTextColor">But maybe they have some very interesting <%= link_to @content_type === 'maps' ? 'datasets' : 'maps', alt_url %></p>
<% end %>
</div>