Commit 80587a7a authored by Bhanuprakash Modem's avatar Bhanuprakash Modem

Display number of comments on patches

This change will display the # of comments of the patch in patch list
view & series view.
Signed-off-by: Bhanuprakash Modem's avatarBhanuprakash Modem <bhanuprakash.modem@intel.com>
parent b662852e
Pipeline #104498 passed with stage
in 2 minutes and 31 seconds
......@@ -67,6 +67,10 @@ $(document).ready(function() {
{% endifequal %}
</th>
<th>
<span title="# of comments">TC</span>
</th>
{% for tag in project.tags %}
<th>
<span title="{{tag.name}}">{{tag.abbrev}}</span>
......@@ -151,6 +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>
{% for tag in project.tags %}
{{ patch|patch_tags:tag }}
{% endfor %}
......
......@@ -182,6 +182,7 @@ $(document).ready(function() {
<th>Name</th>
<th>Submitter</th>
<th>State</th>
<th><span title="# of comments">TC</span></th>
{% for tag in project.tags %}
<th class="tag-header">
<span title="{{tag.name}}">{{tag.abbrev}}</span>
......@@ -197,6 +198,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>
{% 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