2016-06-05 21:46:57 +02:00
|
|
|
<nav class='buttons'>
|
2016-04-10 22:13:01 +02:00
|
|
|
<ul>
|
|
|
|
<li>
|
2017-02-09 00:48:06 +01:00
|
|
|
<% if (ctx.prevPage !== ctx.currentPage) { %>
|
2017-06-25 17:47:33 +02:00
|
|
|
<a rel='prev' class='prev' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.prevPage).offset, ctx.pages.get(ctx.prevPage).limit) %>'>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } else { %>
|
2017-06-25 17:47:33 +02:00
|
|
|
<a rel='prev' class='prev disabled'>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<i class='fa fa-chevron-left'></i>
|
2016-08-28 23:20:25 +02:00
|
|
|
<span class='vim-nav-hint'>< Previous page</span>
|
2016-04-10 22:13:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2017-02-09 00:48:06 +01:00
|
|
|
<% for (let page of ctx.pages.values()) { %>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% if (page.ellipsis) { %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<li>…</li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } else { %>
|
|
|
|
<% if (page.active) { %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<li class='active'>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } else { %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
2017-02-09 00:48:06 +01:00
|
|
|
<a href='<%- ctx.getClientUrlForPage(page.offset, page.limit) %>'><%- page.number %></a>
|
2016-04-10 22:13:01 +02:00
|
|
|
</li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
2016-06-11 09:59:06 +02:00
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
|
|
|
|
<li>
|
2017-02-09 00:48:06 +01:00
|
|
|
<% if (ctx.nextPage !== ctx.currentPage) { %>
|
2017-06-25 17:47:33 +02:00
|
|
|
<a rel='next' class='next' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.nextPage).offset, ctx.pages.get(ctx.nextPage).limit) %>'>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } else { %>
|
2017-06-25 17:47:33 +02:00
|
|
|
<a rel='next' class='next disabled'>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<i class='fa fa-chevron-right'></i>
|
2016-08-28 23:20:25 +02:00
|
|
|
<span class='vim-nav-hint'>Next page ></span>
|
2016-04-10 22:13:01 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|