File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
scanpipe/templates/scanpipe/panels Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 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 %}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments