szurubooru/client/html/manual_pager_nav.hbs

40 lines
1.1 KiB
Handlebars
Raw Normal View History

2016-04-10 22:13:01 +02:00
<nav class='text-nav'>
<ul>
<li>
<% 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>
<% _.each(pages, page => { %>
<% if (page.ellipsis) { %>
2016-04-10 22:13:01 +02:00
<li>&hellip;</li>
<% } else { %>
<% if (page.active) { %>
2016-04-10 22:13:01 +02:00
<li class='active'>
<% } else { %>
2016-04-10 22:13:01 +02:00
<li>
<% } %>
<a href='<%= page.link %>'><%= page.number %></a>
2016-04-10 22:13:01 +02:00
</li>
<% } %>
<% }) %>
2016-04-10 22:13:01 +02:00
<li>
<% 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>