Skip to content

Commit

Permalink
Display summary data using lists
Browse files Browse the repository at this point in the history
Reference: #411

Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed Jun 17, 2022
1 parent d46d5e4 commit 24bc656
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scanpipe/templates/scanpipe/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@
{% for field_label, values in summary_data.items %}
<tr>
<th>{{ field_label }}</th>
{% for entry in values %}
<td class="text-center">{{ entry.value }}</td>
{% endfor %}
<td>
<ul>
{% for entry in values %}
<li>{{ entry.value }} {% if entry.count %} ({{ entry.count }}) {% endif %}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit 24bc656

Please sign in to comment.