Skip to content

Commit 633e5df

Browse files
committed
small ui change in table
Signed-off-by: Aayush Kumar <[email protected]>
1 parent 7c133bd commit 633e5df

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

scanpipe/templates/scanpipe/panels/project_codebase.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<nav id="codebase-navigation" class="panel is-dark">
22
<p class="panel-heading">
33
Codebase
4+
<a href="{% url 'codebase_resource_tree' project.slug %}" class="ml-2">Click to go to the Tree View</a>
45
{% if current_dir and current_dir != "." %}
56
<span class="tag ml-2">
67
{% for dir_name, full_path in codebase_breadcrumbs.items %}

scanpipe/templates/scanpipe/panels/resource_table_panel.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,16 @@
5858
{{ resource.detected_license_expression }}
5959
</td>
6060
<td>
61-
{% if resource.compliance_alert %}
62-
<span class="tag is-warning is-small">{{ resource.compliance_alert }}</span>
63-
{% endif %}
61+
{{ resource.compliance_alert }}
6462
</td>
6563
<td>
6664
{% if resource.discovered_packages.all %}
67-
<div class="tags">
68-
{% for package in resource.discovered_packages.all|slice:":3" %}
69-
<span class="tag is-small">
70-
<a href="{% url 'project_packages' project.slug %}?purl={{ package.package_url }}">{{ package }}</a>
71-
</span>
72-
{% endfor %}
73-
{% if resource.discovered_packages.all|length > 3 %}
74-
<span class="tag is-small">+{{ resource.discovered_packages.all|length|add:"-3" }} more</span>
75-
{% endif %}
76-
</div>
65+
{% for package in resource.discovered_packages.all|slice:":3" %}
66+
<a href="{% url 'project_packages' project.slug %}?purl={{ package.package_url }}">{{ package }}</a>{% if not forloop.last %}, {% endif %}
67+
{% endfor %}
68+
{% if resource.discovered_packages.all|length > 3 %}
69+
+{{ resource.discovered_packages.all|length|add:"-3" }} more
70+
{% endif %}
7771
{% endif %}
7872
</td>
7973
</tr>

0 commit comments

Comments
 (0)