Skip to content

Commit

Permalink
fix for #11 pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
codescape committed Mar 12, 2012
1 parent 4c5d2a9 commit 721d6f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<li class="prev"><a href="/page{{ paginator.next_page }}" title="Ältere Beiträge">← Ältere Beiträge</a></li> <li class="prev"><a href="/page{{ paginator.next_page }}" title="Ältere Beiträge">← Ältere Beiträge</a></li>
{% endif %} {% endif %}
{% if paginator.previous_page %} {% if paginator.previous_page %}
<li class="next"><a href="/page{{ paginator.previous_page }}" title="Neuere Beiträge">Neuere Beiträge →</a></li> {% if paginator.previous_page == 1 %}
<li class="next"><a href="/" title="Neuere Beiträge">Neuere Beiträge →</a></li>
{% else %}
<li class="next"><a href="/page{{ paginator.previous_page }}" title="Neuere Beiträge">Neuere Beiträge →</a></li>
{% endif %}
{% endif %} {% endif %}
</ul> </ul>
</nav> </nav>

0 comments on commit 721d6f8

Please sign in to comment.