%inherit file="/base/index.html" />
<%def name="heading()">
Page List
%def>
<%def name="buildrow(page, odd=True)">
%if odd:
%else:
% endif
${h.link_to(
page.id,
h.url_for('path', id=page.id)
)}
|
${page.title}
|
${page.posted.strftime('%c')} |
%def>
% if len(c.paginator):
${ c.paginator.pager('$link_first $link_previous $first_item to $last_item of $item_count $link_next $link_last') }
Page ID | Page Title | Posted |
<% counter=0 %>
% for item in c.paginator:
${buildrow(item, counter%2)}
<% counter += 1 %>
% endfor
${ c.paginator.pager('~2~') }
% else:
No pages have yet been created.
Add one.
% endif