review/web_templates/index.html @ 22906da596df webui

Get a barely functional webui running.
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Oct 2009 19:46:03 -0400
parents 9539fb54320e
children 73284798e9e9
$def with (rd, revs)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
    <head>
        <title>${ basename(rd.target.root) } / hg-review</title>
    </head>
    
    <body>
        <h1>${ basename(rd.target.root) }</h1>
        
        <h2>Changesets</h2>
        <table>
            $for ctx in revs:
                $ ctx_node = ctx.node()
                $ ctx_comments = rd[ctx_node].comments
                $ ctx_signoffs = rd[ctx_node].signoffs
                <tr>
                    <td>${ ctx.rev() }:${ node_short(ctx_node) }</td>
                    <td>${ ctx.description() }</td>
                    <td>${ len(ctx_comments) } comments,
                        ${ len(ctx_signoffs) } signoffs</td>
                </tr>
        </table>
    </body>
</html>