review/web_templates/review.html @ 87c14b34e264
webui
Lots of small style changes.
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 13 Oct 2009 21:06:14 -0400 |
parents |
590fb7bae0a8 |
children |
78cd41b87ea2 |
$def with (rd, rcset)
<!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>
$ ctx = rd.target[rcset.node]
<h2>Changeset ${ ctx.rev() }: ${ ctx.description() }</h2>
$for filename, diff in rcset.diffs().iteritems():
<h3>${ filename }</h3>
<div class="diff">
<table>
$ max_line = diff['max']
$ content = diff['content']
$for n, line in content:
<tr class="${ 'remove' if line[0] == '-' else 'add' if line[0] == '+' else ''}">
<td class="diff-line"><code>${ line[1:] if line.strip() else ' ' }</code></td>
</tr>
</table>
</div>
</div>
</body>
</html>