review/web_templates/review.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 |
78cd41b87ea2 |
children |
5c62a1333e54 |
$def with (rd, rcset)
$ 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:
$ kind = 'rem' if line[0] == '-' else 'add' if line[0] == '+' else ''
<tr class="${ kind }">
<td class="diff-line"><code>${ line[1:] or ' ' }</code></td>
</tr>
</table>