thirdparty/google_appengine/google/appengine/ext/admin/templates/pager.html
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 07 Dec 2008 17:01:44 +0000
changeset 704 8647e6b441fc
parent 109 620f9b141567
permissions -rw-r--r--
Factor out sidebar entry construction This makes it possible to reuse this logic in other modules as well, preventing code duplication. While at it, move additional_sidebar merging before the other entries (additional entries should go first, since the other entries are mostly dev-only etc). Patch by: Sverre Rabbelier

{% ifnotequal prev_start -1 %}<a href="{{ start_base_url }}&amp;start={{ prev_start }}">&lsaquo; Previous</a>{% endifnotequal %}
&nbsp;
{% for page in pages %}
  <a {% ifequal page.number current_page %} class="ae-page-selected ae-page-number" {% endifequal %}
    href="{{ start_base_url }}&amp;start={{ page.start }}">{{ page.number }}</a> 
{% endfor %}
&nbsp; 
{% ifnotequal next_start -1 %}<a href="{{ start_base_url }}&amp;start={{ next_start }}">Next &rsaquo;</a>{% endifnotequal %}