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:
parent
44517e7600
commit
e77436498f
1 changed files with 8 additions and 6 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue