Skip to content

Commit a54ae68

Browse files
committed
Fix panel rendering #1682
Signed-off-by: tdruez <[email protected]>
1 parent cc29339 commit a54ae68

File tree

5 files changed

+26
-24
lines changed

5 files changed

+26
-24
lines changed

scanpipe/templates/scanpipe/panels/license_clarity_panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<article id="license-clarity-panel" class="panel is-info">
1+
<article id="license-clarity-panel" class="panel is-dark">
22
<div class="panel-heading is-flex is-justify-content-space-between">
33
License clarity
44
{% include "scanpipe/dropdowns/help_dropdown_tooltip.html" with content="License clarity is a set of metrics that indicate how clearly, comprehensively and accurately a software project has defined and communicated the licensing that applies to the software." only %}

scanpipe/templates/scanpipe/panels/license_detections_summary.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% load humanize %}
22
{% if license_detection_summary %}
33
<div class="column is-half">
4-
<article id="license-detection-summary-panel" class="panel is-info">
4+
<article id="license-detection-summary-panel" class="panel is-dark">
55
<div class="panel-heading is-flex is-justify-content-space-between">
66
Unique license detections
77
{% include "scanpipe/dropdowns/help_dropdown_tooltip.html" with content="All unique license detections in the codebase identified by matched license text and other license match characteristics. Also contains other license clues." only %}
88
</div>
9-
<div class="panel is-info">
10-
<nav class="panel is-info">
9+
<div class="panel is-dark">
10+
<nav class="panel is-dark">
1111
{% for license_expression, count in license_detection_summary.items %}
1212
<a class="panel-block is-align-items-flex-start break-word is-flex is-align-items-center" href="{{ project_licenses_url }}?license_expression={{ license_expression|default:'_EMPTY_' }}" target="_blank">
1313
{{ license_expression|default:'<i>No licenses</i>' }}

scanpipe/templates/scanpipe/panels/project_codebase.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
<nav id="codebase-navigation" class="panel is-dark">
2-
<p class="panel-heading is-flex is-justify-content-space-between is-align-items-center">
3-
<span>Codebase</span>
2+
<div class="panel-heading is-flex is-justify-content-space-between is-align-items-center">
3+
<div>
4+
<span>Codebase</span>
5+
{% if current_dir and current_dir != "." %}
6+
<span class="tag ml-2">
7+
{% for dir_name, full_path in codebase_breadcrumbs.items %}
8+
{% if not forloop.last %}
9+
<a href="#" hx-target="#codebase-navigation" hx-swap="outerHTML" hx-get="{{ project_details_url }}codebase/?current_dir={{ full_path }}">
10+
{{ dir_name }}
11+
</a>
12+
<span class="mr-1">/</span>
13+
{% else %}
14+
{{ dir_name }}/
15+
{% endif %}
16+
{% endfor %}
17+
</span>
18+
{% endif %}
19+
</div>
420
<a href="{% url 'codebase_resource_tree' project.slug %}" class="ml-2 has-text-white has-text-decoration-none">
521
<i class="fa-solid fa-folder-tree mr-1"></i>Tree view
622
</a>
7-
{% if current_dir and current_dir != "." %}
8-
<span class="tag ml-2">
9-
{% for dir_name, full_path in codebase_breadcrumbs.items %}
10-
{% if not forloop.last %}
11-
<a href="#" hx-target="#codebase-navigation" hx-swap="outerHTML" hx-get="{{ project_details_url }}codebase/?current_dir={{ full_path }}">
12-
{{ dir_name }}
13-
</a>
14-
<span class="mr-1">/</span>
15-
{% else %}
16-
{{ dir_name }}/
17-
{% endif %}
18-
{% endfor %}
19-
</span>
20-
{% endif %}
21-
</p>
23+
</div>
2224
{% for node in codebase_tree %}
2325
{% if node.is_dir %}
2426
<a class="panel-block" href="#" hx-target="#codebase-navigation" hx-swap="outerHTML" hx-get="{{ project_details_url }}codebase/?current_dir={{ node.location }}">

scanpipe/templates/scanpipe/panels/resource_status_summary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load humanize %}
22
{% if resource_status_summary %}
33
<div class="column is-half">
4-
<nav class="panel is-info">
4+
<nav class="panel is-dark">
55
<p class="panel-heading">
66
Resources status
77
</p>

scanpipe/templates/scanpipe/panels/scan_summary_panel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load intcomma from humanize %}
2-
<article id="scan-summary-panel" class="panel is-info">
3-
<div class="panel-heading py-2 is-size-6 is-flex is-justify-content-space-between">
2+
<article id="scan-summary-panel" class="panel is-dark">
3+
<div class="panel-heading is-size-6 is-flex is-justify-content-space-between">
44
Scan summary
55
{% include "scanpipe/dropdowns/help_dropdown_tooltip.html" with content="A top-level summary of the collected scanned data such as licenses, holders, and languages." only %}
66
</div>

0 commit comments

Comments
 (0)