a3ad66636756 webui

Show skipped-line comments.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 22 Oct 2009 19:22:34 -0400
parents 2e65351af702
children c5debb475273
branches/tags webui
files review/web_templates/review.html

Changes

--- a/review/web_templates/review.html	Thu Oct 22 19:08:08 2009 -0400
+++ b/review/web_templates/review.html	Thu Oct 22 19:22:34 2009 -0400
@@ -69,6 +69,15 @@
                     <tr class="skipped">
                         <td><code>&hellip; skipped ${ skipped_count } lines &hellip;</code></td>
                     </tr>
+                $ skipped_comments = filter(lambda c: max(c.lines) in range(previous_n + 1, n), line_level_comments)
+                $for comment in skipped_comments:
+                    <tr><td class="comment">
+                        <div class="avatar"><img height="52" width="52" src="http://www.gravatar.com/avatar/${ md5(email(comment.author)).hexdigest() }?s=52"/></div>
+                        <div>
+                            <div class="author"><a href="mailto:${ email(comment.author) }">${ templatefilters.person(comment.author) }</a> said (on a skipped line):</div>
+                            <div class="message">${ comment.message }</div>
+                        </div>
+                    </td></tr>
                 $ kind = 'rem' if line[0] == '-' else 'add' if line[0] == '+' else 'con'
                 <tr class="${ kind }">
                     <td class="diff-line"><code>${ line[1:] or ' ' }</code></td>