# HG changeset patch # User Steve Losh # Date 1256165365 14400 # Node ID 43047ad3e2fa5a78da43a7b89a291a82f6be5f9f # Parent 41cb7a791e507183bc8430f16cbd80af155d33f2 Tweak a few styles. diff -r 41cb7a791e50 -r 43047ad3e2fa review/web_media/style.css --- a/review/web_media/style.css Wed Oct 21 18:37:21 2009 -0400 +++ b/review/web_media/style.css Wed Oct 21 18:49:25 2009 -0400 @@ -48,6 +48,20 @@ text-align: right; } +/* Review pages. */ +div.filename-header { + background-color: #ccc; + border: 1px solid #c5c5c5; + padding: 1em; + width: 75em; + margin-left: -5em; + margin-bottom: 1.5em; + margin-top: 1.5em; +} +div.filename-header h3 { + margin: 0em; +} + /* Comments. */ .comment { white-space: normal; @@ -65,6 +79,9 @@ margin-top: 1.5em; white-space: pre; } +div#comment-review { + margin-bottom: 3em; +} /* Diffs. */ div.diff { diff -r 41cb7a791e50 -r 43047ad3e2fa review/web_templates/review.html --- a/review/web_templates/review.html Wed Oct 21 18:37:21 2009 -0400 +++ b/review/web_templates/review.html Wed Oct 21 18:49:25 2009 -0400 @@ -26,7 +26,9 @@ $for filename, diff in rcset.diffs().iteritems(): -

${ filename }

+
+

${ filename }

+
$ file_level_comments = filter(lambda c: c.filename == filename and not c.lines, rcset.comments) $for comment in file_level_comments: @@ -38,7 +40,7 @@ -
+
diff -r 41cb7a791e50 -r 43047ad3e2fa review/web_ui.py --- a/review/web_ui.py Wed Oct 21 18:37:21 2009 -0400 +++ b/review/web_ui.py Wed Oct 21 18:49:25 2009 -0400 @@ -36,7 +36,7 @@ } render = web.template.render(template_path, globals=g) -LOG_PAGE_LEN = 15 +LOG_PAGE_LEN = 25 def render_in_base(fn): def _fn(*args, **kwargs):