thirdparty/google_appengine/google/appengine/ext/admin/templates/pager.html
author Pawel Solyga <Pawel.Solyga@gmail.com>
Fri, 12 Sep 2008 16:33:04 +0000
changeset 135 a7ccde9d9eed
parent 109 620f9b141567
permissions -rw-r--r--
Fixed one typo in response_helpers which caused is_admin context variable not to work correctly. Created new checkLinkNameForId function that checks if link_name is correct when creating new user and modifying existing one. This is now used for validation instead of doesLinkNameBelongToId in UserForm clean_link_name function. The previous validation function didn't allow to create new users and modify linkname of existing ones. Additionally I created new doesLinkNameExist helper function.

{% 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 %}