fix(fastapi): reorganize licenses display

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-11 18:14:15 -08:00
parent 20f5519b99
commit 2dc6cfec23
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -63,10 +63,10 @@
{% endif %} {% endif %}
</tr> </tr>
{% endif %} {% endif %}
{% if licenses and licenses.count() and show_package_details %} {% if show_package_details and licenses and licenses.count() %}
<tr> <tr>
<th>{{ "Licenses" | tr }}:</th> <th>{{ "Licenses" | tr }}:</th>
<td>{{ licenses | join(', ', attribute='Name') | default('None' | tr) }} </td> <td>{{ licenses.all() | join(', ', attribute='Name') | default('None' | tr) }} </td>
</tr> </tr>
{% endif %} {% endif %}
{% if show_package_details %} {% if show_package_details %}