# HG changeset patch # User Steve Losh # Date 1256169493 14400 # Node ID 001f5ecfd9bc3179fb4ce319d7b0369dbdff6a3c # Parent 26150fdd04b848c68633be6c574d5903098c2004# Parent 1cc8e18b1b43ca823159a7cce01d5f3f7fef6da5 Merge the webui skipped line counts -- too important to leave in the branch. diff -r 26150fdd04b8 -r 001f5ecfd9bc review/web_media/style.css --- a/review/web_media/style.css Wed Oct 21 19:32:14 2009 -0400 +++ b/review/web_media/style.css Wed Oct 21 19:58:13 2009 -0400 @@ -99,6 +99,9 @@ table tr.rem { background: #FBDBDA; } +table tr.skipped { + background: #ccc; +} div.diff .comment { margin-bottom: 0em; } \ No newline at end of file diff -r 26150fdd04b8 -r 001f5ecfd9bc review/web_templates/review.html --- a/review/web_templates/review.html Wed Oct 21 19:32:14 2009 -0400 +++ b/review/web_templates/review.html Wed Oct 21 19:58:13 2009 -0400 @@ -60,7 +60,15 @@ $ max_line = diff['max'] $ content = diff['content'] $ line_level_comments = filter(lambda c: c.filename == filename and c.lines, rcset.comments) + $ previous_n = -1 $for n, line in content: + $if n - 1 > previous_n: + $ skipped_count = n - previous_n + $if previous_n == -1: + $ skipped_count -= 1 + + … skipped ${ skipped_count } lines … + $ kind = 'rem' if line[0] == '-' else 'add' if line[0] == '+' else '' ${ line[1:] or ' ' } @@ -74,5 +82,11 @@
${ comment.message }
+ $ previous_n = n + $if previous_n < diff['max']: + $ skipped_count = diff['max'] - previous_n + + … skipped ${ skipped_count } lines … + \ No newline at end of file