# HG changeset patch # User Steve Losh # Date 1255566081 14400 # Node ID 93baa16777e904b65763e58fdba2deaf7e14289f # Parent 5c62a1333e54a69e02d580baa5463c6d5d7eeea6 Some more style changes. diff -r 5c62a1333e54 -r 93baa16777e9 review/web_media/style.css --- a/review/web_media/style.css Wed Oct 14 20:10:37 2009 -0400 +++ b/review/web_media/style.css Wed Oct 14 20:21:21 2009 -0400 @@ -10,9 +10,8 @@ div#head-wrap { text-align: center; padding: 1.5em 0em .5em; - background-color: #105E0F; - color: #fff; - border-bottom: 1px solid #114700; + background-color: #ccc; + border-bottom: 1px solid #bbb; } div#footer { color: #666; @@ -29,6 +28,9 @@ a:hover { color: #EA0076; } +div#head-wrap a { + color: inherit; +} /* Tables. */ table { @@ -65,9 +67,9 @@ border-top: 1px dashed #666; border-bottom: 1px dashed #666; font-family: Consolas, Monaco, "Courier New", Courier, monospace; + padding: 0.75em; } table tr td.comment div.author { - } table tr td.comment div.message { margin-top: 1.5em; diff -r 5c62a1333e54 -r 93baa16777e9 review/web_templates/base.html --- a/review/web_templates/base.html Wed Oct 14 20:10:37 2009 -0400 +++ b/review/web_templates/base.html Wed Oct 14 20:21:21 2009 -0400 @@ -11,7 +11,7 @@
-

${ basename(rd.target.root) }

+

${ basename(rd.target.root) }

$:{ content } diff -r 5c62a1333e54 -r 93baa16777e9 review/web_templates/index.html --- a/review/web_templates/index.html Wed Oct 14 20:10:37 2009 -0400 +++ b/review/web_templates/index.html Wed Oct 14 20:21:21 2009 -0400 @@ -12,7 +12,7 @@ ${ ctx.description() } - ${ len(ctx_comments) } comments, + ${ len(ctx_comments) } comments, ${ len(ctx_signoffs) } signoffs \ No newline at end of file diff -r 5c62a1333e54 -r 93baa16777e9 review/web_templates/review.html --- a/review/web_templates/review.html Wed Oct 14 20:10:37 2009 -0400 +++ b/review/web_templates/review.html Wed Oct 14 20:21:21 2009 -0400 @@ -18,9 +18,9 @@ $ line_comments = filter(lambda c: max(c.lines) == n, line_level_comments) $for comment in line_comments: -
+
-
${ comment.author } said:
+
${ comment.message }
diff -r 5c62a1333e54 -r 93baa16777e9 review/web_ui.py --- a/review/web_ui.py Wed Oct 14 20:10:37 2009 -0400 +++ b/review/web_ui.py Wed Oct 14 20:21:21 2009 -0400 @@ -25,8 +25,15 @@ from mercurial.node import short from mercurial.util import email +from mercurial import templatefilters from hashlib import md5 -g = { 'node_short': short, 'basename': os.path.basename, 'md5': md5, 'email': email } +g = { + 'node_short': short, + 'basename': os.path.basename, + 'md5': md5, + 'email': email, + 'templatefilters': templatefilters, +} render = web.template.render(template_path, globals=g) LOG_PAGE_LEN = 15