${_('Showing items %(i)d to %(l)d of %(count)d') % dict(i=c.page.first_item, l=c.page.last_item, count=c.page.item_count)}.
${_('Show items:')}
${h.pager_select(fieldname, str(c.page.items_per_page))}
${_('per page')}
% if c.page.page_count == 1:
-
% endif
% else:
${_('No items found')}
% endif
% if c.page.next_page != c.page.first_page and c.page.page != c.page.first_page:
% if c.direction != 'dsc' or c.order_by != 'id':
<% link_url = url('list-pages-byfield', list_type=c.list_type, page=c.page.first_page, direction=c.direction, order_by=c.order_by, **kwd) %>
% else:
<% link_url = url('list-pages', list_type=c.list_type, page=c.page.first_page, **kwd) %>
% endif
${h.link_to(h.pager_img('first'), link_url)}
...
% endif
% if c.page.previous_page:
% if c.direction != 'dsc' or c.order_by != 'id':
<% link_url = rl('list-pages-byfield', list_type=c.list_type, page=c.page.previous_page, direction=c.direction, order_by=c.order_by, **kwd) %>
% else:
<% link_url = url('list-pages', list_type=c.list_type, page=c.page.previous_page, **kwd) %>
% endif
${h.link_to(h.pager_img('previous'), link_url)}
% endif
% for linkpage in page_nums:
% if linkpage == c.page.page:
${linkpage}
% else:
% if c.direction != 'dsc' or c.order_by != 'id':
<% link_url = url('list-pages-byfield', list_type=c.list_type, page=linkpage, direction=c.direction, order_by=c.order_by, **kwd) %>
% else:
<% link_url = url('list-pages', list_type=c.list_type, page=linkpage, **kwd) %>
% endif
${h.link_to(h.literal(linkpage), link_url)}
% endif
% endfor
% if c.page.next_page:
% if c.direction != 'dsc' or c.order_by != 'id':
<% link_url = url('list-pages-byfield', list_type=c.list_type, page=c.page.next_page, direction=c.direction, order_by=c.order_by, **kwd) %>
% else:
<% link_url = url('list-pages', list_type=c.list_type, page=c.page.next_page, **kwd) %>
% endif
${h.link_to(h.pager_img('next'), link_url)}
% endif
% if c.page.next_page != c.page.page_count and c.page.page != c.page.page_count and c.page.page_count != 0:
...
% if c.direction != 'dsc' or c.order_by != 'id':
<% link_url = url('list-pages-byfield', list_type=c.list_type, page=c.page.page_count, direction=c.direction, order_by=c.order_by, **kwd) %>
% else:
<% link_url = url('list-pages', list_type=c.list_type, page=c.page.page_count, **kwd) %>
% endif
${h.link_to(h.pager_img('last'), link_url)}
% endif
% if c.page.page_count != 0:
% else: