PageRenderTime 97ms CodeModel.GetById 94ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/pagination.html

https://code.google.com/p/mango-py/
HTML | 40 lines | 28 code | 12 blank | 0 comment | 0 complexity | 03e82993101f5fcc8693772efe06d393 MD5 | raw file
 1<%def name="pagination(cl, pagination_required, show_all_url, page_range, ALL_VAR)" >
 2
 3<form name="gotopage" method="GET" action=".">
 4<p class="paginator">
 5
 6% if pagination_required:
 7
 8<%
 9    from django.contrib.admin.templatetags.admin_list import paginator_number
10%>
11
12% for i in page_range:
13
14    ${ paginator_number(cl,i) }
15
16% endfor
17
18
19% endif
20
21${cl.result_count} 
22% if cl.result_count==1:
23    ${cl.opts.verbose_name}
24% else:
25${cl.opts.verbose_name_plural}
26% endif
27
28% if show_all_url:
29&nbsp;&nbsp;<a href="${show_all_url}" class="showall">${trans('Show all')}</a>
30% endif
31
32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to page <input type="text" size="4" name="p">
33${cl.build_hidden_input_tags()}
34% if cl.formset and cl.result_count:
35<input type="submit" name="_save" class="default" value="${ trans('Save') }"/>
36% endif
37</p>
38</form>
39
40</%def>