Skip to content

Instantly share code, notes, and snippets.

@gordonbanderson
Created August 1, 2011 10:21
Show Gist options
  • Save gordonbanderson/1117902 to your computer and use it in GitHub Desktop.
Save gordonbanderson/1117902 to your computer and use it in GitHub Desktop.
<% if LastPagedResults.MoreThanOnePage %>
<div class="pageNumbers">
<% if LastPagedResults.NotFirstPage %>
<a class="prev" href="$LastPagedResults.PrevLink" title="View the previous page">Prev</a>
<% end_if %>
<span>
<% control LastPagedResults.Pages %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="View page number $PageNum">$PageNum</a>
<% end_if %>
<% end_control %>
</span>
<% if LastPagedResults.NotLastPage %>
<a class="next" href="$LastPagedResults.NextLink" title="View the next page">Next</a>
<% end_if %>
</div>
<% end_if %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment