cartodb-4.42/lib/assets/javascripts/cartodb/common/views/pagination/template.jst.ejs
2024-04-06 05:25:13 +00:00

17 lines
669 B
Plaintext

<span class="DefaultDescription Pagination-label">
Page <%- currentPage %> of <%- pagesCount %>
</span>
<ul class="Pagination-list">
<% m.pagesToDisplay().forEach(function(page) { %>
<% if (page > 0) { %>
<li class="Pagination-listItem <%- m.isCurrentPage(page) ? 'is-current' : '' %>">
<a class="Pagination-listItemInner Pagination-listItemInner--link" 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>