# HG changeset patch # User Steve Losh # Date 1255643617 14400 # Node ID c48a619ef5db477c8873c4d3a478354e584ed876 # Parent 0a9effb274b0c2bab2e856f9787fb7a2351d57a9 Add file-level comments. diff -r 0a9effb274b0 -r c48a619ef5db review/web_templates/review.html --- a/review/web_templates/review.html Wed Oct 14 20:30:36 2009 -0400 +++ b/review/web_templates/review.html Thu Oct 15 17:53:37 2009 -0400 @@ -15,11 +15,22 @@ $for filename, diff in rcset.diffs().iteritems():

${ filename }

+ + $ file_level_comments = filter(lambda c: c.filename == filename and not c.lines, rcset.comments) + $for comment in file_level_comments: +
+
+
+ +
${ comment.message }
+
+
+
$ max_line = diff['max'] $ content = diff['content'] - $ line_level_comments = filter(lambda c: c.filename == filename, rcset.comments) + $ line_level_comments = filter(lambda c: c.filename == filename and c.lines, rcset.comments) $for n, line in content: $ kind = 'rem' if line[0] == '-' else 'add' if line[0] == '+' else ''