1
0
Fork 0
mirror of https://github.com/correl/codereview.git synced 2025-04-08 01:00:59 -09:00

Review comments weren't checking to see if they were on the proper path to display on

This commit is contained in:
Correl Roush 2010-12-17 16:05:16 -05:00
parent 44517e7600
commit e77436498f

View file

@ -21,12 +21,14 @@
{% if review %}
{% for comment in review.comment_set.all %}
{% if change.type == '+' and change.line_b == comment.line_b or change.type == '-' and change.line_a == comment.line_a or change.line_a == comment.line_a and change.line_b == comment.line_b %}
<tr class="annotation">
<td colspan="3">
{% include "components/comment.html" %}
</td>
</tr>
{% if not diff.b and comment.path == diff.a.path or comment.path == diff.b.path %}
{% if change.type == '+' and change.line_b == comment.line_b or change.type == '-' and change.line_a == comment.line_a or change.line_a == comment.line_a and change.line_b == comment.line_b %}
<tr class="annotation">
<td colspan="3">
{% include "components/comment.html" %}
</td>
</tr>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}