@@ -176,32 +176,42 @@ <h3 class="fs-6 fw-medium mb-0">{% trans "Security compliance" %}</h3>
176176 {% endif %}
177177
178178 {# Vulnerability list #}
179- {% for vulnerability in vulnerabilities %}
180- < div class ="d-flex align-items-center border-bottom gap-3 py-2 ">
181- < span data-bs-toggle ="tooltip " title ="{{ vulnerability.risk_score }} ">
182- {% if vulnerability.risk_level == "critical" %}
183- < span class ="badge bg-danger-subtle text-danger-emphasis "> {% trans "Critical" %}</ span >
184- {% elif vulnerability.risk_level == "high" %}
185- < span class ="badge bg-warning-orange-subtle text-warning-orange "> {% trans "High" %}</ span >
186- {% elif vulnerability.risk_level == "medium" %}
187- < span class ="badge bg-warning-subtle text-warning-emphasis "> {% trans "Medium" %}</ span >
188- {% elif vulnerability.risk_level == "low" %}
189- < span class ="badge bg-info-subtle text-info-emphasis "> {% trans "Low" %}</ span >
190- {% else %}
191- < span class ="badge text-bg-secondary "> {% trans "Unknown" %}</ span >
192- {% endif %}
193- </ span >
194- < a href ="{{ vulnerability.resource_url }} " target ="_blank " class ="font-monospace small text-decoration-none " style ="min-width: fit-content; ">
195- {{ vulnerability.advisory_id }}
196- </ a >
197- < span class ="flex-grow-1 d-none d-md-inline small "> {{ vulnerability.summary|truncatechars:70 }}</ span >
198- </ div >
199- {% empty %}
200- < div class ="text-center text-body-tertiary py-4 ">
201- < i class ="fas fa-shield-check fa-2x mb-2 d-block "> </ i >
202- {% trans "No known vulnerabilities" %}
203- </ div >
204- {% endfor %}
179+ < table class ="table table-sm align-middle mb-0 ">
180+ < tbody >
181+ {% for vulnerability in vulnerabilities %}
182+ < tr >
183+ < td class ="ps-0 text-nowrap w-auto ">
184+ < span data-bs-toggle ="tooltip " title ="{{ vulnerability.risk_score }} ">
185+ {% if vulnerability.risk_level == "critical" %}
186+ < span class ="badge bg-danger-subtle text-danger-emphasis "> {% trans "Critical" %}</ span >
187+ {% elif vulnerability.risk_level == "high" %}
188+ < span class ="badge bg-warning-orange-subtle text-warning-orange "> {% trans "High" %}</ span >
189+ {% elif vulnerability.risk_level == "medium" %}
190+ < span class ="badge bg-warning-subtle text-warning-emphasis "> {% trans "Medium" %}</ span >
191+ {% elif vulnerability.risk_level == "low" %}
192+ < span class ="badge bg-info-subtle text-info-emphasis "> {% trans "Low" %}</ span >
193+ {% else %}
194+ < span class ="badge text-bg-secondary "> {% trans "Unknown" %}</ span >
195+ {% endif %}
196+ </ span >
197+ </ td >
198+ < td class ="text-nowrap w-auto ">
199+ < a href ="{{ vulnerability.resource_url }} " target ="_blank " class ="font-monospace small text-decoration-none ">
200+ {{ vulnerability.advisory_id }}
201+ </ a >
202+ </ td >
203+ < td class ="small d-none d-md-table-cell "> {{ vulnerability.summary|truncatechars:70 }}</ td >
204+ </ tr >
205+ {% empty %}
206+ < tr >
207+ < td colspan ="3 " class ="text-center text-body-tertiary py-4 ">
208+ < i class ="fas fa-shield-check fa-2x mb-2 d-block "> </ i >
209+ {% trans "No known vulnerabilities" %}
210+ </ td >
211+ </ tr >
212+ {% endfor %}
213+ </ tbody >
214+ </ table >
205215
206216 {# View all link #}
207217 {% if vulnerabilities|length < vulnerability _count %}
0 commit comments