szurubooru/client/html/manual_pager_nav.tpl
rr- dfc65e5a7c client/general: add < > vim navigation hints
For example, in Vimperator, one now can navigate to previous/next page
or post by pressing f< or f>.
2016-08-28 23:40:28 +02:00

39 lines
1.2 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 class='vim-nav-hint'>&lt; 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 class='vim-nav-hint'>Next page &gt;</span>
</a>
</li>
</ul>
</nav>