diff --git a/scancodeio/static/main.css b/scancodeio/static/main.css index bb1622b852..ceac90a17c 100644 --- a/scancodeio/static/main.css +++ b/scancodeio/static/main.css @@ -530,8 +530,6 @@ body.full-screen #resource-viewer .message-header { flex: 1; min-width: 0; transition: opacity 0.2s ease; - display: flex; - flex-direction: column; height: 100%; } #resource-tree-container .right-pane .table-scroll-area { diff --git a/scanpipe/templates/scanpipe/base_htmx.html b/scanpipe/templates/scanpipe/base_htmx.html new file mode 100644 index 0000000000..093920ac63 --- /dev/null +++ b/scanpipe/templates/scanpipe/base_htmx.html @@ -0,0 +1,5 @@ +{% block partial-content %} +{% endblock %} + +{% block scripts %} +{% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/dependency_detail.html b/scanpipe/templates/scanpipe/dependency_detail.html index 6ccaed1f8b..e89aec3ab1 100644 --- a/scanpipe/templates/scanpipe/dependency_detail.html +++ b/scanpipe/templates/scanpipe/dependency_detail.html @@ -8,6 +8,6 @@ {% include 'scanpipe/includes/navbar_header.html' %}
{% include 'scanpipe/includes/messages.html' %}
{% include 'scanpipe/includes/breadcrumb_detail_view.html' with object_title=object.package_url url_name="project_dependencies" %} - {% include 'scanpipe/tabset/tabset.html' %} +
{% include 'scanpipe/tabset/tabset.html' %}
{% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/project_dependency_tree.html b/scanpipe/templates/scanpipe/dependency_tree.html similarity index 100% rename from scanpipe/templates/scanpipe/project_dependency_tree.html rename to scanpipe/templates/scanpipe/dependency_tree.html diff --git a/scanpipe/templates/scanpipe/includes/project_summary_level.html b/scanpipe/templates/scanpipe/includes/project_summary_level.html index a9aee18f88..f942ebb418 100644 --- a/scanpipe/templates/scanpipe/includes/project_summary_level.html +++ b/scanpipe/templates/scanpipe/includes/project_summary_level.html @@ -70,7 +70,7 @@ {{ project.resource_count|intcomma }} {% if project.resource_count > 1 %} - + diff --git a/scanpipe/templates/scanpipe/license_detail.html b/scanpipe/templates/scanpipe/license_detail.html index 2d7b58d0dd..e118847dcb 100644 --- a/scanpipe/templates/scanpipe/license_detail.html +++ b/scanpipe/templates/scanpipe/license_detail.html @@ -16,6 +16,6 @@ - {% include 'scanpipe/tabset/tabset.html' %} +
{% include 'scanpipe/tabset/tabset.html' %}
{% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/license_detection_detail.html b/scanpipe/templates/scanpipe/license_detection_detail.html index eec34ad59d..b8c3166cf6 100644 --- a/scanpipe/templates/scanpipe/license_detection_detail.html +++ b/scanpipe/templates/scanpipe/license_detection_detail.html @@ -8,6 +8,6 @@ {% include 'scanpipe/includes/navbar_header.html' %}
{% include 'scanpipe/includes/messages.html' %}
{% include 'scanpipe/includes/breadcrumb_detail_view.html' with object_title=object.identifier url_name="project_licenses" %} - {% include 'scanpipe/tabset/tabset.html' %} +
{% include 'scanpipe/tabset/tabset.html' %}
{% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/package_detail.html b/scanpipe/templates/scanpipe/package_detail.html index d54840b785..fbc63bcc5b 100644 --- a/scanpipe/templates/scanpipe/package_detail.html +++ b/scanpipe/templates/scanpipe/package_detail.html @@ -8,6 +8,6 @@ {% include 'scanpipe/includes/navbar_header.html' %}
{% include 'scanpipe/includes/messages.html' %}
{% include 'scanpipe/includes/breadcrumb_detail_view.html' with object_title=object.package_url url_name="project_packages" %} - {% include 'scanpipe/tabset/tabset.html' %} +
{% include 'scanpipe/tabset/tabset.html' %}
{% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/panels/project_codebase.html b/scanpipe/templates/scanpipe/panels/project_codebase.html index 0f05c7c25a..b8c80f9312 100644 --- a/scanpipe/templates/scanpipe/panels/project_codebase.html +++ b/scanpipe/templates/scanpipe/panels/project_codebase.html @@ -21,7 +21,7 @@ {% endif %} -
+ Tree view diff --git a/scanpipe/templates/scanpipe/resource_detail.html b/scanpipe/templates/scanpipe/resource_detail.html index 1ba3ac1bf8..9380d8743a 100644 --- a/scanpipe/templates/scanpipe/resource_detail.html +++ b/scanpipe/templates/scanpipe/resource_detail.html @@ -1,20 +1,27 @@ -{% extends "scanpipe/base.html" %} +{% extends request.htmx|yesno:"scanpipe/base_htmx.html,scanpipe/base.html" %} {% load static %} {% block title %}ScanCode.io: {{ project.name }} - {{ object.name }}{% endblock %} +{% block extrahead %} + + +{% endblock %} + {% block content %}
{% include 'scanpipe/includes/navbar_header.html' %}
{% include 'scanpipe/includes/messages.html' %}
{% include 'scanpipe/includes/breadcrumb_detail_view.html' with template_title="scanpipe/includes/resource_path_links.html" url_name="project_resources" %} - {% include 'scanpipe/tabset/tabset.html' %} +
+ {% block partial-content %} + {% include 'scanpipe/tabset/tabset.html' %} + {% endblock %} +
{% endblock %} {% block scripts %} - - {{ detected_values|json_script:"detected_values" }} {% endblock %} \ No newline at end of file diff --git a/scanpipe/templates/scanpipe/resource_list.html b/scanpipe/templates/scanpipe/resource_list.html index 90cb444e89..44091f4baa 100644 --- a/scanpipe/templates/scanpipe/resource_list.html +++ b/scanpipe/templates/scanpipe/resource_list.html @@ -17,7 +17,7 @@
- + diff --git a/scanpipe/templates/scanpipe/resource_tree.html b/scanpipe/templates/scanpipe/resource_tree.html index 660db165cf..2a174f41a4 100644 --- a/scanpipe/templates/scanpipe/resource_tree.html +++ b/scanpipe/templates/scanpipe/resource_tree.html @@ -2,6 +2,11 @@ {% load static humanize %} {% block title %}ScanCode.io: {{ project.name }} - Resources tree{% endblock %} +{% block extrahead %} + + +{% endblock %} + {% block content %}
{% include 'scanpipe/includes/navbar_header.html' %} @@ -12,27 +17,27 @@
-
-
-
-
- {% include "scanpipe/panels/codebase_tree_panel.html" with children=children path=path %} -
-
-
-
- {% if path %} -
+
+
+
+
+ {% include "scanpipe/tree/resource_left_pane_tree.html" with children=children path=path %}
- {% else %} - {% include "scanpipe/panels/resource_table_panel.html" %} - {% endif %} +
+
+
+ {% if path %} +
+
+ {% else %} + {% include "scanpipe/tree/resource_right_pane_table.html" %} + {% endif %} +
-
{% endblock %} {% block scripts %} diff --git a/scanpipe/templates/scanpipe/tables/project_list_table.html b/scanpipe/templates/scanpipe/tables/project_list_table.html index 5ab588c6b8..728e324090 100644 --- a/scanpipe/templates/scanpipe/tables/project_list_table.html +++ b/scanpipe/templates/scanpipe/tables/project_list_table.html @@ -54,7 +54,7 @@ {{ project.codebaseresources_count|intcomma }}
{% if project.codebaseresources_count > 1 %} - + diff --git a/scanpipe/templates/scanpipe/tabset/tabset.html b/scanpipe/templates/scanpipe/tabset/tabset.html index 2778deced7..6b9f1f218b 100644 --- a/scanpipe/templates/scanpipe/tabset/tabset.html +++ b/scanpipe/templates/scanpipe/tabset/tabset.html @@ -1,5 +1,5 @@ {% load humanize %} -
+