|
62 | 62 | </span> |
63 | 63 | {{ filter_productcomponent.form.review_status }} |
64 | 64 | </th> |
65 | | - <th style="width: 106px;"> |
| 65 | + <th style="width: 75px;"> |
66 | 66 | <span class="help_text" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="{{ help_texts.is_deployed }}"> |
67 | | - {% trans 'Deployed' %} |
| 67 | + {% trans 'Dep.' %} |
68 | 68 | </span> |
69 | 69 | {{ filter_productcomponent.form.is_deployed }} |
70 | 70 | </th> |
71 | | - <th style="width: 100px;"> |
| 71 | + <th style="width: 75px;"> |
72 | 72 | <span class="help_text" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="{{ help_texts.is_modified }}"> |
73 | | - {% trans 'Modified' %} |
| 73 | + {% trans 'Mod.' %} |
74 | 74 | </span> |
75 | 75 | {{ filter_productcomponent.form.is_modified }} |
76 | 76 | </th> |
77 | 77 | {% if product.dataspace.enable_vulnerablecodedb_access %} |
78 | | - <th style="width: 75;"> |
| 78 | + <th style="width: 75px;"> |
79 | 79 | <span class="help_text" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="{{ help_texts.risk_score }}"> |
80 | 80 | {% trans 'Risk' %} |
81 | 81 | </span> |
82 | 82 | {{ filter_productcomponent.form.weighted_risk_score }} |
83 | 83 | </th> |
84 | 84 | {% endif %} |
| 85 | + {% if display_scan_features %} |
| 86 | + <th style="width: 90px;"> |
| 87 | + {% trans 'Scan' %} |
| 88 | + </th> |
| 89 | + {% endif %} |
85 | 90 | </tr> |
86 | 91 | </thead> |
87 | 92 | <tbody> |
|
138 | 143 | {% endif %} |
139 | 144 | </td> |
140 | 145 | {% endif %} |
141 | | - </tr> |
142 | | - {% if relation.package and display_scan_features %} |
143 | | - <tr class="{{ rowcolors }} extra-details"> |
144 | | - <td colspan="100" class="ps-4"> |
145 | | - <div class="col-2 p-0"> |
146 | | - {% if relation.scan %} |
147 | | - <strong>{% trans 'Scan' %}:</strong> {% include 'component_catalog/includes/scan_progress.html' with scan=relation.scan view_url=relation.package.get_absolute_url compact_mode=True only %} |
148 | | - {% else %} |
149 | | - {% with relation.package.download_url as download_url %} |
150 | | - <span{% if download_url %} data-bs-toggle="modal" data-bs-target="#scan-package-modal" data-package-scan-url="{% url 'component_catalog:package_scan' user.dataspace relation.package.uuid %}"{% endif %}> |
151 | | - <button type="button" class="btn btn-outline-dark btn-sm{% if not download_url %} disabled{% endif %}" data-bs-toggle="tooltip" title="{% if download_url %}{% trans 'Submit Scan Request' %}{% else %}{% trans 'Download URL not available' %}{% endif %}"><i class="fas fa-barcode"></i> Scan</button> |
152 | | - </span> |
153 | | - {% endwith %} |
154 | | - {% endif %} |
155 | | - </div> |
| 146 | + {% if display_scan_features %} |
| 147 | + <td> |
| 148 | + {% if relation.scan %} |
| 149 | + {% include 'product_portfolio/tables/scan_progress_cell.html' with scan=relation.scan view_url=relation.package.get_absolute_url compact_mode=True only %} |
| 150 | + {% elif relation.package %} |
| 151 | + {% with relation.package.download_url as download_url %} |
| 152 | + <span{% if download_url %} data-bs-toggle="modal" data-bs-target="#scan-package-modal" data-package-scan-url="{% url 'component_catalog:package_scan' user.dataspace relation.package.uuid %}"{% endif %}> |
| 153 | + <button type="button" class="btn btn-outline-dark btn-sm{% if not download_url %} disabled{% endif %}" data-bs-toggle="tooltip" title="{% if download_url %}{% trans 'Submit Scan Request' %}{% else %}{% trans 'Download URL not available' %}{% endif %}"><i class="fas fa-barcode"></i> Scan</button> |
| 154 | + </span> |
| 155 | + {% endwith %} |
| 156 | + {% endif %} |
156 | 157 | </td> |
157 | | - </tr> |
158 | | - {% endif %} |
| 158 | + {% endif %} |
| 159 | + </tr> |
159 | 160 | {% if relation.package.download_url %} |
160 | 161 | <tr class="{{ rowcolors }} extra-details"> |
161 | 162 | <td colspan="100" class="ps-4 text-break"> |
|
0 commit comments