szurubooru/client/html/manual_pager_nav.tpl
rr- 6ea129a9ef client/views: escape HTML
This lets client use < > in tag names.
2016-06-23 12:47:56 +02:00

39 lines
1.1 KiB
Smarty

<nav class='buttons'>
<ul>
<li>
<% if (ctx.prevLinkActive) { %>
<a class='prev' href='<%- ctx.prevLink %>'>
<% } else { %>
<a class='prev disabled'>
<% } %>
<i class='fa fa-chevron-left'></i>
<span>Previous page</span>
</a>
</li>
<% for (let page of ctx.pages) { %>
<% if (page.ellipsis) { %>
<li>&hellip;</li>
<% } else { %>
<% if (page.active) { %>
<li class='active'>
<% } else { %>
<li>
<% } %>
<a href='<%- page.link %>'><%- page.number %></a>
</li>
<% } %>
<% } %>
<li>
<% if (ctx.nextLinkActive) { %>
<a class='next' href='<%- ctx.nextLink %>'>
<% } else { %>
<a class='next disabled'>
<% } %>
<i class='fa fa-chevron-right'></i>
<span>Next page</span>
</a>
</li>
</ul>
</nav>