更新 _no_results.html.erb

This commit is contained in:
钟进 2020-07-13 16:32:01 +00:00
parent 6222bddbd1
commit 783d37a55f

View File

@ -4,9 +4,9 @@
</div> </div>
<% if @total_count > 0 %> <% if @total_count > 0 %>
<h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m u-tSpace-xl"><%= @name %> 此页上没有任何项目</h3> <h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m u-tSpace-xl"><%= @name %> 此页上没有任何项目</h3>
<p class="CDB-Text CDB-Size-medium u-altTextColor">Try the <%= link_to 'first page', @first_page_url %> instead</p> <p class="CDB-Text CDB-Size-medium u-altTextColor">你可以 <%= link_to 'first page', @first_page_url %> 尝试</p>
<% else %> <% 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' ? '地图' : '数据' %> yet</h3> <h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m u-tSpace-xl"><%= @name %> 暂时没有任何开放的 <%= @content_type === 'maps' ? '地图' : '数据' %> </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> <p class="CDB-Text CDB-Size-medium u-altTextColor">你可以看看有没有 <%= link_to @content_type === 'maps' ? '数据' : '地图', alt_url %></p>
<% end %> <% end %>
</div> </div>