review/web_templates/review.html @ 43d109fde61e webui

Fix the table alignment before it drives me crazy.
author Steve Losh <steve@stevelosh.com>
date Wed, 14 Oct 2009 19:08:14 -0400
parents efc3c9173ce1
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>