review/web_templates/index.html @ efc3c9173ce1 webui
Add template inheritance. Not liking Templetor so far...
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Wed, 14 Oct 2009 19:06:00 -0400 |
| parents | 590fb7bae0a8 |
| children | 93baa16777e9 |
$def with (rd, revs) <h2>Changesets</h2> <table> $for ctx in revs: $ ctx_node = ctx.node() $ ctx_node_short = node_short(ctx_node) $ ctx_comments = rd[ctx_node].comments $ ctx_signoffs = rd[ctx_node].signoffs <tr class="${ loop.parity }"> <td>${ ctx.rev() }:${ ctx_node_short }</td> <td> <a href="/review/${ ctx_node_short }/">${ ctx.description() }</a> </td> <td>${ len(ctx_comments) } comments, ${ len(ctx_signoffs) } signoffs</td> </tr> </table>