dfc65e5a7c
For example, in Vimperator, one now can navigate to previous/next page or post by pressing f< or f>.
39 lines
1.2 KiB
Smarty
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'>< Previous page</span>
|
|
</a>
|
|
</li>
|
|
|
|
<% for (let page of ctx.pages) { %>
|
|
<% if (page.ellipsis) { %>
|
|
<li>…</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 ></span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|