cartodb/lib/assets/javascripts/builder/components/pagination/pagination.tpl

17 lines
727 B
Smarty
Raw Normal View History

2020-06-15 10:58:47 +08:00
<span class="CDB-Text CDB-Size-medium u-altTextColor Pagination-label">
Page <%- currentPage %> of <%- pagesCount %>
</span>
<ul class="Pagination-list CDB-Text CDB-Size-medium">
<% m.pagesToDisplay().forEach(function(page) { %>
<% if (page > 0) { %>
<li class="Pagination-listItem <%- m.isCurrentPage(page) ? 'is-current' : '' %>">
<a class="Pagination-listItemInner Pagination-listItemInner--link js-listItem" href="<%- m.urlTo(page) %>" data-page="<%- page %>"><%- page %></a>
</li>
<% } else { %>
<li class="Pagination-listItem Pagination-listItem">
<span class="Pagination-listItemInner Pagination-listItemInner--more">&hellip;</span>
</li>
<% } %>
<% }) %>
</ul>