review/web_templates/index.html @ 590fb7bae0a8 webui
Add a simple review page in the web UI. Just show diffs for now.
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Tue, 13 Oct 2009 20:55:01 -0400 |
| parents | 7b4e78679c9d |
| children | efc3c9173ce1 |
$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> <link rel="stylesheet" href="/media/aal.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/media/style.css" type="text/css" media="screen" /> </head> <body> <div id="main-wrap"> <h1>${ basename(rd.target.root) }</h1> <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> </div> </body> </html>