/macros/TableList
Type: /type/macro
description: TableList Macro
macro: value: $def with (path="", limit=50, use_repr=False)

$ page = safeint(query_param("page", "0"))
$ pages = list_pages(path, limit=limit, offset=page * limit)

<!--islist-->

<table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="historyheader">Title</td>
                <td class="historyheader">Author</td>
                <td class="historyheader" style="white-space: nowrap">Scan Status</td>
            </tr>
            
$for p in pages:
    $if use_repr:
        <tr>$:thingrepr(p)</tr>
    $else:
        <tr><td><a href="$homepath()$p.key">$p.key</a></td></tr>

</table>