review/web_templates/review.html @ 78cd41b87ea2 webui

More small style changes.
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Oct 2009 21:12:15 -0400
parents 590fb7bae0a8
children efc3c9173ce1
$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:
                            $ 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>
                </div>
        </div>
    </body>
</html>