diff --git a/scanpipe/templates/scanpipe/panels/resource_table_panel.html b/scanpipe/templates/scanpipe/panels/resource_table_panel.html index b90048bc22..a7a721513f 100644 --- a/scanpipe/templates/scanpipe/panels/resource_table_panel.html +++ b/scanpipe/templates/scanpipe/panels/resource_table_panel.html @@ -1,81 +1,104 @@ {% load humanize %} +
+
+ {% if path_segments %} + + {% spaceless %} + {% for subpath, segment in path_segments %} + {% if not forloop.first %}/{% endif %} + {% if not forloop.last %} + {{ segment }} + {% else %} + {{ segment }} + {% endif %} + {% endfor %} + {% endspaceless %} + + + {% endif %} +
+
-{% if resources %} - - - - - - - - - - - - {% for resource in resources %} +
+ {% if resources %} +
NameStatusLanguageLicenseAlert
+ - + + + + + + + + {% for resource in resources %} + + - - - - - - {% endfor %} - -
- + NameStatusLanguageLicenseAlert
+ + {% if resource.is_dir %} + + {% else %} + + {% endif %} + {% if resource.is_dir %} - + {{ resource.name }} {% else %} - + {{ resource.name }} {% endif %} - - {% if resource.is_dir %} - {{ resource.name }} - {% else %} - {{ resource.name }} - {% endif %} - {% if resource.tag %} - {{ resource.tag }} - {% endif %} - - {{ resource.status }} - - {{ resource.programming_language }} - - {{ resource.detected_license_expression }} - - {{ resource.compliance_alert }} -
+ {% if resource.tag %} + {{ resource.tag }} + {% endif %} + + + {{ resource.status }} + + + {{ resource.programming_language }} + + + {{ resource.detected_license_expression }} + + + {{ resource.compliance_alert }} + + + {% endfor %} + + - {% if is_paginated %} - - {% endif %} -{% else %} -
-
- + {% if is_paginated %} + + {% endif %} + {% else %} +
+
+ +
+

+ {% if path %} + No resources found in this directory. + {% else %} + Select a file or folder from the tree to view its contents. + {% endif %} +

-

- {% if path %} - No resources found in this directory. - {% else %} - Select a file or folder from the tree to view its contents. - {% endif %} -

-
-{% endif %} \ No newline at end of file + {% endif %} +
\ No newline at end of file diff --git a/scanpipe/templates/scanpipe/resource_tree.html b/scanpipe/templates/scanpipe/resource_tree.html index 8eb040f7fd..ceefc2b1f7 100644 --- a/scanpipe/templates/scanpipe/resource_tree.html +++ b/scanpipe/templates/scanpipe/resource_tree.html @@ -54,10 +54,16 @@ } .right-pane { flex: 1; - overflow-y: auto; - overflow-x: hidden; min-width: 0; transition: opacity 0.2s ease; + display: flex; + flex-direction: column; + height: 100%; + } + .right-pane .table-scroll-area { + flex: 1; + overflow-y: auto; + overflow-x: hidden; } .right-pane.collapsed { opacity: 0; @@ -105,6 +111,14 @@ {% block scripts %}