Commit bc734cd9 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

patch-list: Fix total comment counts

We were off by one as the patch's body counts as one comment.
Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent eebba81b
Pipeline #124128 passed with stage
in 1 minute and 34 seconds
......@@ -155,7 +155,7 @@ $(document).ready(function() {
{% endif %}
<td><a href="{% url 'patch' patch_id=patch.id %}"
>{{ patch.name|default:"[no subject]"|truncatechars:100 }}</a></td>
<td>{{ patch.comments.count }}</td>
<td>{{ patch.comments.count|add:"-1" }}</td>
{% for tag in project.tags %}
{{ patch|patch_tags:tag }}
{% endfor %}
......
......@@ -255,7 +255,7 @@ $(document).ready(function() {
>{{ patch.name|default:"[no subject]"|truncatechars:100 }}</a></td>
<td>{{ patch.submitter|personify:project }}</td>
<td>{{ patch.state }}</td>
<td>{{ patch.comments.count }}</td>
<td>{{ patch.comments.count|add:"-1" }}</td>
{% for tag in project.tags %}
{{ patch|patch_tags:tag }}
{% endfor %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment