2016-04-10 22:13:01 +02:00
|
|
|
<nav class='text-nav'>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% if (prevLinkActive) { %>
|
|
|
|
<a class='prev' href='<%= prevLink %>'>
|
|
|
|
<% } else { %>
|
|
|
|
<a class='prev disabled'>
|
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<i class='fa fa-chevron-left'></i>
|
|
|
|
<span>Previous page</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2016-05-09 20:07:54 +02:00
|
|
|
<% _.each(pages, page => { %>
|
|
|
|
<% 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
|
|
|
<% } %>
|
|
|
|
<a href='<%= page.link %>'><%= page.number %></a>
|
2016-04-10 22:13:01 +02:00
|
|
|
</li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
|
|
|
<% }) %>
|
2016-04-10 22:13:01 +02:00
|
|
|
|
|
|
|
<li>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% if (nextLinkActive) { %>
|
|
|
|
<a class='next' href='<%= nextLink %>'>
|
|
|
|
<% } else { %>
|
|
|
|
<a class='next disabled'>
|
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<i class='fa fa-chevron-right'></i>
|
|
|
|
<span>Next page</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|