Pretty pagination

This commit is contained in:
extensionsapp 2017-09-22 02:48:34 +03:00
parent 93b794a5c7
commit bebedb3bb3
2 changed files with 4 additions and 12 deletions

View file

@ -244,9 +244,7 @@
<% } %>
<% if (page.pagination.prev.length) { %>
<% page.pagination.prev.forEach(function (prev) { %>
<a href="<%- prev.link %>" rel="nofollow">
<%- prev.number %>
</a>
<a href="<%- prev.link %>" rel="nofollow"><%- prev.number %></a>
<% }); %>
<span class="nav_ext">...</span>
<% } %>
@ -254,9 +252,7 @@
<% if (page.pagination.next.length) { %>
<span class="nav_ext">...</span>
<% page.pagination.next.forEach(function (next) { %>
<a href="<%- next.link %>" rel="nofollow">
<%- next.number %>
</a>
<a href="<%- next.link %>" rel="nofollow"><%- next.number %></a>
<% }); %>
<% } %>
<% if (page.pagination.last) { %>

View file

@ -167,9 +167,7 @@
<% } %>
<% if (page.pagination.prev.length) { %>
<% page.pagination.prev.forEach(function (prev) { %>
<a href="<%- prev.link %>" rel="nofollow">
<%- prev.number %>
</a>
<a href="<%- prev.link %>" rel="nofollow"><%- prev.number %></a>
<% }); %>
<span class="nav_ext">...</span>
<% } %>
@ -177,9 +175,7 @@
<% if (page.pagination.next.length) { %>
<span class="nav_ext">...</span>
<% page.pagination.next.forEach(function (next) { %>
<a href="<%- next.link %>" rel="nofollow">
<%- next.number %>
</a>
<a href="<%- next.link %>" rel="nofollow"><%- next.number %></a>
<% }); %>
<% } %>
<% if (page.pagination.last) { %>