|
259 | 259 | </table> |
260 | 260 | {% endif %} |
261 | 261 |
|
262 | | - {% if licenses %} |
| 262 | + {% if license_references %} |
263 | 263 | <table> |
264 | | - <caption>Licenses</caption> |
| 264 | + <caption>License References</caption> |
265 | 265 | <thead> |
266 | 266 | <tr> |
267 | 267 | <th>key</th> |
268 | 268 | <th>short_name</th> |
269 | 269 | <th>category</th> |
270 | 270 | <th>owner</th> |
271 | | - <th>reference_url</th> |
| 271 | + <th>scancode_url</th> |
| 272 | + <th>licensedb_url</th> |
272 | 273 | <th>homepage_url</th> |
273 | | - <th>text_url</th> |
| 274 | + <th>text_urls</th> |
274 | 275 | <th>spdx_license_key</th> |
275 | 276 | <th>spdx_url</th> |
276 | 277 | </tr> |
277 | 278 | </thead> |
278 | 279 | <tbody> |
279 | | - {% for license_reference in license_references %} |
280 | | - <tr id="license_{{ license_reference.key }}"> |
281 | | - <td>{{ license_reference.key }}</td> |
282 | | - <td>{{ license_reference.short_name }}</td> |
283 | | - <td>{{ license_reference.category }}</td> |
284 | | - <td>{{ license_reference.owner }}</td> |
285 | | - <td>{{ license_reference.scancode_url|urlize(target='_blank') }}</td> |
286 | | - <td>{{ license_reference.licensedb_url|urlize(target='_blank') }}</td> |
287 | | - <td>{{ license_reference.homepage_url|urlize(target='_blank') }}</td> |
288 | | - <td> |
289 | | - {% for text_url in license_reference.text_urls %} |
290 | | - {{ text_url|urlize(target='_blank') }} |
291 | | - {% endfor %} |
292 | | - </td> |
293 | | - <td>{{ license_reference.spdx_license_key }}</td> |
294 | | - <td>{{ license_reference.spdx_url|urlize(target='_blank') }}</td> |
295 | | - </tr> |
296 | | - {% endfor %} |
| 280 | + {% for license_reference in license_references %} |
| 281 | + <tr id="license_{{ license_reference.key }}"> |
| 282 | + <td>{{ license_reference.key }}</td> |
| 283 | + <td>{{ license_reference.short_name }}</td> |
| 284 | + <td>{{ license_reference.category }}</td> |
| 285 | + <td>{{ license_reference.owner }}</td> |
| 286 | + <td>{{ license_reference.scancode_url|urlize(target='_blank') }}</td> |
| 287 | + <td>{{ license_reference.licensedb_url|urlize(target='_blank') }}</td> |
| 288 | + <td>{{ license_reference.homepage_url|urlize(target='_blank') }}</td> |
| 289 | + <td> |
| 290 | + {% for text_url in license_reference.text_urls %} |
| 291 | + {{ text_url|urlize(target='_blank') }} |
| 292 | + {% endfor %} |
| 293 | + </td> |
| 294 | + <td>{{ license_reference.spdx_license_key }}</td> |
| 295 | + <td>{{ license_reference.spdx_url|urlize(target='_blank') }}</td> |
| 296 | + </tr> |
| 297 | + {% endfor %} |
297 | 298 | </tbody> |
298 | 299 | </table> |
299 | 300 | {% endif %} |
|
0 commit comments