%inherit file="/base/index.html" />
<%def name="heading()">
Comment List
%def>
<%def name="buildrow(comment, odd=True)">
${h.link_to(
comment.id,
h.url_for(
controller=u'comment',
action='view',
id=unicode(comment.id)
)
)}
|
${h.link_to(
comment.name,
h.url_for(
controller=u'comment',
action='edit',
id=unicode(comment.id)
)
)}
|
${comment.created.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') }
Comment ID | Comment Title | Posted |
<% counter=0 %>
% for item in c.paginator:
${buildrow(item, counter%2)}
<% counter += 1 %>
% endfor
${ c.paginator.pager('~2~') }
% else:
No comments have yet been created.
Add one.
% endif