client/paging: add cues for qutebrowser

This commit is contained in:
rr- 2017-06-25 17:47:33 +02:00
parent 3c138685ea
commit 043b182b5e
2 changed files with 10 additions and 10 deletions

View file

@ -2,9 +2,9 @@
<ul> <ul>
<li> <li>
<% if (ctx.prevPage !== ctx.currentPage) { %> <% if (ctx.prevPage !== ctx.currentPage) { %>
<a class='prev' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.prevPage).offset, ctx.pages.get(ctx.prevPage).limit) %>'> <a rel='prev' class='prev' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.prevPage).offset, ctx.pages.get(ctx.prevPage).limit) %>'>
<% } else { %> <% } else { %>
<a class='prev disabled'> <a rel='prev' class='prev disabled'>
<% } %> <% } %>
<i class='fa fa-chevron-left'></i> <i class='fa fa-chevron-left'></i>
<span class='vim-nav-hint'>&lt; Previous page</span> <span class='vim-nav-hint'>&lt; Previous page</span>
@ -27,9 +27,9 @@
<li> <li>
<% if (ctx.nextPage !== ctx.currentPage) { %> <% if (ctx.nextPage !== ctx.currentPage) { %>
<a class='next' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.nextPage).offset, ctx.pages.get(ctx.nextPage).limit) %>'> <a rel='next' class='next' href='<%- ctx.getClientUrlForPage(ctx.pages.get(ctx.nextPage).offset, ctx.pages.get(ctx.nextPage).limit) %>'>
<% } else { %> <% } else { %>
<a class='next disabled'> <a rel='next' class='next disabled'>
<% } %> <% } %>
<i class='fa fa-chevron-right'></i> <i class='fa fa-chevron-right'></i>
<span class='vim-nav-hint'>Next page &gt;</span> <span class='vim-nav-hint'>Next page &gt;</span>

View file

@ -4,12 +4,12 @@
<article class='previous-post'> <article class='previous-post'>
<% if (ctx.prevPostId) { %> <% if (ctx.prevPostId) { %>
<% if (ctx.editMode) { %> <% if (ctx.editMode) { %>
<a href='<%= ctx.getPostEditUrl(ctx.prevPostId, ctx.parameters) %>'> <a rel='prev' href='<%= ctx.getPostEditUrl(ctx.prevPostId, ctx.parameters) %>'>
<% } else { %> <% } else { %>
<a href='<%= ctx.getPostUrl(ctx.prevPostId, ctx.parameters) %>'> <a rel='prev' href='<%= ctx.getPostUrl(ctx.prevPostId, ctx.parameters) %>'>
<% } %> <% } %>
<% } else { %> <% } else { %>
<a class='inactive'> <a rel='prev' class='inactive'>
<% } %> <% } %>
<i class='fa fa-chevron-left'></i> <i class='fa fa-chevron-left'></i>
<span class='vim-nav-hint'>&lt; Previous post</span> <span class='vim-nav-hint'>&lt; Previous post</span>
@ -18,12 +18,12 @@
<article class='next-post'> <article class='next-post'>
<% if (ctx.nextPostId) { %> <% if (ctx.nextPostId) { %>
<% if (ctx.editMode) { %> <% if (ctx.editMode) { %>
<a href='<%= ctx.getPostEditUrl(ctx.nextPostId, ctx.parameters) %>'> <a rel='next' href='<%= ctx.getPostEditUrl(ctx.nextPostId, ctx.parameters) %>'>
<% } else { %> <% } else { %>
<a href='<%= ctx.getPostUrl(ctx.nextPostId, ctx.parameters) %>'> <a rel='next' href='<%= ctx.getPostUrl(ctx.nextPostId, ctx.parameters) %>'>
<% } %> <% } %>
<% } else { %> <% } else { %>
<a class='inactive'> <a rel='next' class='inactive'>
<% } %> <% } %>
<i class='fa fa-chevron-right'></i> <i class='fa fa-chevron-right'></i>
<span class='vim-nav-hint'>Next post &gt;</span> <span class='vim-nav-hint'>Next post &gt;</span>