cartodb-4.42/lib/assets/javascripts/builder/components/pagination-search/pagination.tpl

17 lines
727 B
Smarty
Raw Normal View History

2024-04-06 13:25:13 +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' : '' %>">
<button class="Pagination-listItemInner Pagination-listItemInner--link u-actionTextColor js-listItem" data-page="<%- page %>"><%- page %></button>
</li>
<% } else { %>
<li class="Pagination-listItem Pagination-listItem">
<span class="Pagination-listItemInner Pagination-listItemInner--more">&hellip;</span>
</li>
<% } %>
<% }) %>
</ul>