bugfix: fix extra dependency annotations

These were being displayed regardless of the dep type
and state of DepDesc. This is fixed with this commit.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-07-27 22:03:38 -07:00
parent 88569b6d09
commit 04d1c81d3d
3 changed files with 16 additions and 3 deletions

View file

@ -16,9 +16,11 @@
</a>
{% endif %}
{{ dep.Package | provides_list(dep.DepName) | safe }}
{% set extra = dep | dep_extra %}
{% if extra %}
<!-- If this dependency type is an optdepends (id: 4). -->
{% if dep.DepTypeID == 4 %}
<em>{{ dep | dep_extra_desc }}</em>
{% else %}
<em>{{ dep | dep_extra }}</em>
{% endif %}
</li>
{% endfor %}