<%namespace name="components" file="/components.html"/> <%def name="smallrow(tile, page)">
${h.page.link(page, icon=True, icon_size=16)|n}
<%def name="row(tile, page)">

${page.title}

%if page.function == page.NORM: ${ungettext("%s proposal", "%s proposals", len(page.selections)) % len(page.selections)} %endif ${ungettext("%s comment", "%s comments", page.comment_count()) % page.comment_count()}, ${_("latest %s") % h.relative_time(page.find_latest_comment_time())|n} 
<%def name="select_page(tile, field_name, select, exclude, functions, list_limit, allow_empty=True)"> %if list_limit is not None and model.Page.count(instance=c.instance, exclude=exclude, functions=functions) > list_limit: %else: %endif <%def name="inline(tile, page, text, subpages_pager=None, hide_discussion=False)"> ${tiles.text.full(text, subpages_pager=subpages_pager, hide_discussion=hide_discussion)} <%def name="header(tile, page, active, text, variant)">
%if can.norm.create() and active == 'view': ${_("new norm")} %endif %if can.variant.edit(page, "") and page.has_variants and active == 'diff': ${_("branch new variant")} %endif %if variant==model.Text.HEAD and can.variant.edit(page, variant): ${_("edit")} %elif can.variant.edit(page, variant): ${_("edit")} %endif %if can.variant.delete(page, variant) and active == 'diff' and c.variant: ${_("purge variant")} %endif %if can.page.delete(page) and active != 'diff': ${_("delete")} %endif ${components.watch(page)}

%if text.variant != text.HEAD: %if c.variant: ${_("Variant %s of %s") % (text.variant_html, text.title)|n} %else: ${_("Variant of %s") % (text.title,)} %endif %else: ${text.title} %endif