|
37 | 37 | <li data-tab="fixed-by"> |
38 | 38 | <a> |
39 | 39 | <span> |
40 | | - Fixed by packages ({{ vulnerability.resolved_to|length }}) |
| 40 | + Fixed by packages ({{ resolved_to|length }}) |
41 | 41 | </span> |
42 | 42 | </a> |
43 | 43 | </li> |
44 | 44 | <li data-tab="affected-packages"> |
45 | 45 | <a> |
46 | 46 | <span> |
47 | | - Affected packages ({{ vulnerability.vulnerable_to|length }}) |
| 47 | + Affected packages ({{ vulnerable_to|length }}) |
48 | 48 | </span> |
49 | 49 | </a> |
50 | 50 | </li> |
51 | 51 | <li data-tab="references"> |
52 | 52 | <a> |
53 | 53 | <span> |
54 | | - References ({{ vulnerability.references.all|length }}) |
| 54 | + References ({{ references|length }}) |
55 | 55 | </span> |
56 | 56 | </a> |
57 | 57 | </li> |
|
69 | 69 | <tr> |
70 | 70 | <td class="two-col-left">Aliases</td> |
71 | 71 | <td class="two-col-right"> |
72 | | - {% for alias in vulnerability.aliases.all %} |
| 72 | + {% for alias in aliases %} |
73 | 73 | {% if alias.url %} |
74 | 74 | <a href={{ alias.url }} target="_blank">{{ alias }}<i class="fa fa-external-link fa_link_custom"></i></a> |
75 | 75 | {% else %} |
|
121 | 121 |
|
122 | 122 |
|
123 | 123 | <div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-6"> |
124 | | - Fixed by packages ({{ vulnerability.resolved_to.all|length }}) |
| 124 | + Fixed by packages ({{ resolved_to|length }}) |
125 | 125 | </div> |
126 | 126 | <div class="tab-nested-div"> |
127 | 127 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border"> |
128 | | - {% for package in vulnerability.resolved_to.all|slice:":3" %} |
| 128 | + {% for package in resolved_to|slice:":3" %} |
129 | 129 | <tr> |
130 | 130 | <td> |
131 | 131 | <a href="{{ package.get_absolute_url }}" target="_self">{{ package.purl }}</a> |
|
139 | 139 | </td> |
140 | 140 | </tr> |
141 | 141 | {% endfor %} |
142 | | - {% if vulnerability.resolved_to.all|length > 3 %} |
| 142 | + {% if resolved_to|length > 3 %} |
143 | 143 | <tr> |
144 | 144 | <td> |
145 | 145 | ... see <i>Fixed by packages</i> tab for more |
|
150 | 150 | </div> |
151 | 151 |
|
152 | 152 | <div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-6"> |
153 | | - Affected packages ({{ vulnerability.vulnerable_to.all|length }}) |
| 153 | + Affected packages ({{ vulnerable_to|length }}) |
154 | 154 | </div> |
155 | 155 | <div class="tab-nested-div"> |
156 | 156 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border"> |
157 | | - {% for package in vulnerability.vulnerable_to.all|slice:":3" %} |
| 157 | + {% for package in vulnerable_to|slice:":3" %} |
158 | 158 | <tr> |
159 | 159 | <td> |
160 | 160 | <a href="{{ package.get_absolute_url }}" target="_self">{{ package.purl }}</a> |
|
168 | 168 | </td> |
169 | 169 | </tr> |
170 | 170 | {% endfor %} |
171 | | - {% if vulnerability.vulnerable_to.all|length > 3 %} |
| 171 | + {% if vulnerable_to|length > 3 %} |
172 | 172 | <tr> |
173 | 173 | <td> |
174 | 174 | ... see <i>Affected packages</i> tab for more |
|
187 | 187 | <th> URL </th> |
188 | 188 | </tr> |
189 | 189 | </thead> |
190 | | - {% for ref in vulnerability.references.all %} |
| 190 | + {% for ref in references %} |
191 | 191 | <tr> |
192 | 192 | {% if ref.reference_id %} |
193 | 193 | <td class="wrap-strings">{{ ref.reference_id }}</td> |
|
210 | 210 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
211 | 211 | <thead> |
212 | 212 | <tr> |
213 | | - <th><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="The package url or purl is a URL string used to identify and locate a software package.">Package URL</span></th> |
214 | | - <th style="width: 225px;"><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="This is the number of vulnerabilities that affect the package.">Affected by vulnerabilities</span></th> |
215 | | - <th style="width: 225px;"><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="This is the number of vulnerabilities fixed by the package.">Fixing vulnerabilities</span></th> |
| 213 | + <th><span |
| 214 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 215 | + data-tooltip="The package url or purl is a URL string used to identify and locate a software package."> |
| 216 | + Package URL</span> |
| 217 | + </th> |
216 | 218 | </tr> |
217 | 219 | </thead> |
218 | 220 | <tbody> |
219 | | - {% for package in vulnerability.vulnerable_to.all %} |
| 221 | + {% for package in vulnerable_to %} |
220 | 222 | <tr> |
221 | 223 | <td> |
222 | 224 | <a href="{{ package.get_absolute_url }}?search={{ package.purl }}" target="_self">{{ package.purl }}</a> |
223 | 225 | </td> |
224 | | - <td>{{ package.vulnerable_to|length }}</td> |
225 | | - <td>{{ package.resolved_to|length }}</td> |
226 | 226 | </tr> |
227 | 227 | {% empty %} |
228 | 228 | <tr> |
229 | | - <td colspan="3"> |
| 229 | + <td> |
230 | 230 | This vulnerability is not known to affect any packages. |
231 | 231 | </td> |
232 | 232 | </tr> |
|
239 | 239 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
240 | 240 | <thead> |
241 | 241 | <tr> |
242 | | - <th><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="The package url or purl is a URL string used to identify and locate a software package.">Package URL</span></th> |
243 | | - <th style="width: 225px;"><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="This is the number of vulnerabilities that affect the package.">Affected by vulnerabilities</span></th> |
244 | | - <th style="width: 225px;"><span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" data-tooltip="This is the number of vulnerabilities fixed by the package.">Fixing vulnerabilities</span></th> |
| 242 | + <th><span |
| 243 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 244 | + data-tooltip="The package url or purl is a URL string used to identify and locate a software package."> |
| 245 | + Package URL</span> |
| 246 | + </th> |
245 | 247 | </tr> |
246 | 248 | </thead> |
247 | 249 | <tbody> |
248 | | - {% for package in vulnerability.resolved_to.all %} |
| 250 | + {% for package in resolved_to %} |
249 | 251 | <tr> |
250 | 252 | <td> |
251 | 253 | <a href="{{ package.get_absolute_url }}?search={{ package.purl }}" target="_self">{{ package.purl }}</a> |
252 | 254 | </td> |
253 | | - <td>{{ package.vulnerable_to|length }}</td> |
254 | | - <td>{{ package.resolved_to|length }}</td> |
255 | 255 | </tr> |
256 | 256 | {% empty %} |
257 | 257 | <tr> |
258 | | - <td colspan="3"> |
| 258 | + <td> |
259 | 259 | This vulnerability is not known to be fixed by any packages. |
260 | 260 | </td> |
261 | 261 | </tr> |
|
0 commit comments