## -*- coding: UTF-8 -*- ## index.html <%inherit file="layout.html" />

${c.collection_name.title()}

% if c.collection: <% cols = c.Entity.c %> ${self.paginate_controls()} % for col in cols: % endfor % for m in c.collection: % for col in cols: <% v = str(getattr(m, col.name)) if len(v) > 20: v = v[:20] + '...' %> % endfor % endfor
${h.nice_name_for_col(col)}Actions
${v} ${h.nav_list_for_member(c.member_name, c.controller, m.id, (c.parent_member_name or None), (c.parent_id or None), terse_link_text=True, join_with='·')}
${self.paginate_controls()} % else:

No ${c.collection_name}. ${h.link_to('Create one »', h.url_for(action='new'))}

% endif <%def name="paginate_controls()">
<% prev_page, next_page, per_page = h.get_prev_next_per_page(c.paginator) url_args = dict(controller=c.controller, action='index', page=prev_page, per_page=per_page) %>