Skip to content

Instantly share code, notes, and snippets.

@gpedro
Created January 9, 2015 12:42
Show Gist options
  • Save gpedro/4b8eb930876e4c988e28 to your computer and use it in GitHub Desktop.
Save gpedro/4b8eb930876e4c988e28 to your computer and use it in GitHub Desktop.
jade > ejs
<% if (paginate.hasPreviousPages || paginate.hasNextPages(pageCount)) { %>
<ul class="pager">
<% if (paginate.hasPreviousPages) {%>
<li class="previous">
<a href="<%- paginate.href(true) %>" class="prev"><i class="fa fa-arrow-circle-left"></i> Previous</a>
</li>
<% } %>
<% if (paginate.hasNextPages(pageCount)) { %>
<li class="next">
<a href="<%- paginate.href() %>" class="next">Next&nbsp;<i class="fa fa-arrow-circle-right"></i></a>
</li>
<% } %>
</ul>
<% } %>
if paginate.hasPreviousPages || paginate.hasNextPages(pageCount)
.navigation.well-sm#pagination
ul.pager
if paginate.hasPreviousPages
li.previous
a(href=paginate.href(true)).prev
i.fa.fa-arrow-circle-left
| Previous
if paginate.hasNextPages(pageCount)
li.next
a(href=paginate.href()).next
| Next&nbsp;
i.fa.fa-arrow-circle-right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment