szurubooru/client/html/manual_pager_nav.tpl

40 lines
1.1 KiB
Smarty
Raw Normal View History

2016-06-05 21:46:57 +02:00
<nav class='buttons'>
2016-04-10 22:13:01 +02:00
<ul>
<li>
<% if (ctx.prevLinkActive) { %>
<a class='prev' href='<%- ctx.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>
<% for (let page of ctx.pages) { %>
<% 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 (ctx.nextLinkActive) { %>
<a class='next' href='<%- ctx.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>