Created
May 18, 2011 13:59
-
-
Save leonid-shevtsov/978616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='paginator'> | |
{% if paginator.next_page %} | |
<div class='paginator-next'> | |
<a href='/page{{paginator.next_page}}'> | |
Earlier posts → | |
</a> | |
</div> | |
{% endif %} | |
{% if paginator.previous_page %} | |
<div class='paginator-prev'> | |
{% if paginator.previous_page==1 %} | |
<a href='/page{{paginator.previous_page}}'> | |
← Later posts | |
</a> | |
{% else %} | |
<a href='/'> | |
← Later posts | |
</a> | |
{% endif %} | |
</div> | |
{% endif %} | |
<div class='clear'></div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment