File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed
scanpipe/templates/scanpipe Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 6969 < a href ="{{ project_resources_url }} ">
7070 {{ project.resource_count|intcomma }}
7171 </ a >
72+ {% if project.resource_count > 1 %}
73+ < a href ="{% url 'codebase_resource_tree' project.slug %} " class ="ml-2 ">
74+ < span class ="icon ">
75+ < i class ="fa-solid fa-folder-tree is-size-6 "> </ i >
76+ </ span >
77+ </ a >
78+ {% endif %}
7279 {% if project.resource_compliance_alert_count %}
7380 < a href ="{% url 'project_resources' project.slug %}?compliance_alert=error " class ="has-text-danger is-size-5 ml-2 ">
7481 {{ project.resource_compliance_alert_count|intcomma }}
Original file line number Diff line number Diff line change 5050 </ div >
5151
5252 {% if object_list %}
53- {% include 'scanpipe/includes /project_list_table.html' with projects=object_list %}
53+ {% include 'scanpipe/tables /project_list_table.html' with projects=object_list %}
5454 {% else %}
5555 < article class ="box has-text-centered border-dashed ">
5656 {% if filter.is_active %}
Original file line number Diff line number Diff line change 1717 </ div >
1818
1919 < div id ="resource-list " class ="container is-fluid mb-3 ">
20+ < a href ="{% url 'codebase_resource_tree' project.slug %} " class ="is-pulled-right ">
21+ < span class ="icon ">
22+ < i class ="fa-solid fa-folder-tree "> </ i >
23+ </ span >
24+ < span > View the resource tree</ span >
25+ </ a >
2026 < table class ="table is-bordered is-striped is-narrow is-hoverable is-fullwidth ">
2127 {% include 'scanpipe/includes/list_view_thead.html' %}
2228 < tbody >
Original file line number Diff line number Diff line change 11{% extends "scanpipe/base.html" %}
22{% load static humanize %}
3- {% block title %}ScanCode.io: {{ project.name }} - Resources ( tree view) {% endblock %}
3+ {% block title %}ScanCode.io: {{ project.name }} - Resources tree{% endblock %}
44
55{% block extrahead %}
66 < style >
8585 {% include 'scanpipe/includes/navbar_header.html' %}
8686 < section class ="mx-5 ">
8787 < div class ="is-flex is-justify-content-space-between ">
88- {% include 'scanpipe/includes/breadcrumb.html' with linked_project=True current="Resources ( tree view) " %}
88+ {% include 'scanpipe/includes/breadcrumb.html' with linked_project=True current="Resources tree" %}
8989 </ div >
9090 </ section >
9191 </ div >
Original file line number Diff line number Diff line change 5353 < a href ="{% url 'project_resources' project.slug %} ">
5454 {{ project.codebaseresources_count|intcomma }}
5555 </ a >
56+ {% if project.codebaseresources_count > 1 %}
57+ < a href ="{% url 'codebase_resource_tree' project.slug %} ">
58+ < span class ="icon ">
59+ < i class ="fa-solid fa-folder-tree fa-sm "> </ i >
60+ </ span >
61+ </ a >
62+ {% endif %}
5663 {% else %}
5764 < span > 0</ span >
5865 {% endif %}
You can’t perform that action at this time.
0 commit comments