review/web_templates/index.html @ 7b4e78679c9d
webui
Add some basic styles so I don't hate looking at this thing.
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 13 Oct 2009 20:13:17 -0400 |
parents |
73284798e9e9 |
children |
590fb7bae0a8 |
$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_comments = rd[ctx_node].comments
$ ctx_signoffs = rd[ctx_node].signoffs
<tr class="${ loop.parity }">
<td>${ ctx.rev() }:${ node_short(ctx_node) }</td>
<td>${ ctx.description() }</td>
<td>${ len(ctx_comments) } comments,
${ len(ctx_signoffs) } signoffs</td>
</tr>
</table>
</div>
</body>
</html>