Display skipped comments on the last hunk in the web UI.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 06 Feb 2010 06:51:10 -0500 |
parents |
475b1a886645
|
children |
d22951120189
|
branches/tags |
webui |
files |
review/web_templates/review.html |
Changes
--- a/review/web_templates/review.html Sat Feb 06 12:38:57 2010 +0100
+++ b/review/web_templates/review.html Sat Feb 06 06:51:10 2010 -0500
@@ -120,6 +120,15 @@
<tr class="skipped">
<td><code>… skipped ${ skipped_count } lines …</code></td>
</tr>
+ $ skipped_comments = filter(lambda c: max(c.lines) in range(previous_n + 1, max_line), 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>
</table>
</div>
</div>