fix(fastapi): hide conflicts when there are none

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

View file

@ -69,11 +69,11 @@
<td>{{ licenses.all() | join(', ', attribute='Name') | default('None' | tr) }} </td>
</tr>
{% endif %}
{% if show_package_details %}
{% if show_package_details and conflicts and conflicts.count() %}
<tr>
<th>{{ "Conflicts" | tr }}:</th>
<td class="wrap">
{{ conflicts | join(', ', attribute='RelName') }}
{{ conflicts.all() | join(', ', attribute='RelName') }}
</td>
</tr>
{% endif %}