17 lines
727 B
Smarty
17 lines
727 B
Smarty
|
<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">…</span>
|
||
|
</li>
|
||
|
<% } %>
|
||
|
<% }) %>
|
||
|
</ul>
|