|
9 | 9 | {% endif %} |
10 | 10 | </div> |
11 | 11 |
|
12 | | -<table class="table table-hover"> |
13 | | - <thead class="table-light"> |
| 12 | +<table class="table table-bordered table-md text-break"> |
| 13 | + <thead> |
14 | 14 | <tr> |
15 | 15 | <th style="width: 38%">{% trans "Package" %}</th> |
16 | 16 | <th style="width: 22%">{% trans "Recommended action" %}</th> |
|
20 | 20 | </thead> |
21 | 21 | <tbody> |
22 | 22 | {% for record in page_obj.object_list %} |
23 | | - <tr class="align-top"> |
24 | | - <td class="py-3"> |
25 | | - <a class="fw-semibold text-decoration-none" |
26 | | - href="{{ record.product_package.package.get_absolute_url }}#vulnerabilities" |
27 | | - target="_blank"> |
28 | | - {{ record.product_package.package }} |
29 | | - </a> |
30 | | - <div class="d-flex flex-wrap gap-2 mt-2"> |
| 23 | + <tr> |
| 24 | + <td> |
| 25 | + <strong> |
| 26 | + <a href="{{ record.product_package.package.get_absolute_url }}#vulnerabilities" |
| 27 | + target="_blank"> |
| 28 | + {{ record.product_package.package }} |
| 29 | + </a> |
| 30 | + </strong> |
| 31 | + <div class="d-flex flex-wrap gap-2 mt-1"> |
31 | 32 | {% with score=record.product_package.weighted_risk_score %} |
32 | 33 | {% if score %} |
33 | 34 | <span class="badge {% if score >= 8.0 %}bg-danger-subtle text-danger-emphasis{% elif score >= 6.0 %}bg-warning-subtle text-warning-emphasis{% elif score >= 3.0 %}bg-info-subtle text-info-emphasis{% else %}bg-secondary-subtle text-secondary-emphasis{% endif %}"> |
|
36 | 37 | {% endif %} |
37 | 38 | {% endwith %} |
38 | 39 | {% if record.product_package.is_deployed %} |
39 | | - <span class="badge bg-body-tertiary text-body-secondary border"> |
40 | | - {% trans "Deployed" %} |
41 | | - </span> |
| 40 | + <span class="badge text-bg-light border">{% trans "Deployed" %}</span> |
42 | 41 | {% endif %} |
43 | 42 | {% if record.product_package.purpose %} |
44 | | - <span class="badge bg-body-tertiary text-body-secondary border"> |
45 | | - {{ record.product_package.purpose.label }} |
46 | | - </span> |
| 43 | + <span class="badge text-bg-light border">{{ record.product_package.purpose.label }}</span> |
47 | 44 | {% endif %} |
48 | 45 | </div> |
49 | 46 | </td> |
50 | | - <td class="py-3"> |
51 | | - <div> |
52 | | - <span class="badge {{ record.action_badge_class }} px-2 py-1"> |
53 | | - <i class="fas {{ record.action_icon }} me-1"></i>{{ record.action_label }} |
54 | | - </span> |
55 | | - </div> |
56 | | - <div class="small text-body-secondary mt-2"> |
| 47 | + <td> |
| 48 | + <span class="badge {{ record.action_badge_class }}"> |
| 49 | + <i class="fas {{ record.action_icon }} me-1"></i>{{ record.action_label }} |
| 50 | + </span> |
| 51 | + <div class="small text-body-secondary mt-1"> |
57 | 52 | <i class="fas fa-layer-group fa-xs me-1"></i>{{ record.ruleset.name }} |
58 | 53 | </div> |
59 | 54 | </td> |
60 | | - <td class="py-3"> |
61 | | - <div class="d-flex flex-wrap align-items-center gap-1"> |
| 55 | + <td> |
| 56 | + <div class="d-flex flex-wrap gap-1"> |
62 | 57 | {% if record.critical_count %} |
63 | 58 | <span class="badge bg-danger-subtle text-danger-emphasis"> |
64 | 59 | {{ record.critical_count }} {% trans "critical" %} |
|
76 | 71 | {% endif %} |
77 | 72 | </div> |
78 | 73 | {% if record.vulnerability_count %} |
79 | | - <div class="mt-2"> |
| 74 | + <div class="mt-1"> |
80 | 75 | <a href="{{ record.product_package.package.get_absolute_url }}#vulnerabilities" |
81 | 76 | target="_blank" |
82 | 77 | class="small text-body-secondary text-decoration-none"> |
|
85 | 80 | </div> |
86 | 81 | {% endif %} |
87 | 82 | </td> |
88 | | - <td class="py-3 small text-body-secondary text-nowrap"> |
| 83 | + <td class="small text-body-secondary text-nowrap"> |
89 | 84 | {{ record.detected_date|date:"N j, Y" }} |
90 | 85 | </td> |
91 | 86 | </tr> |
|
0 commit comments