mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
88569b6d09
commit
04d1c81d3d
3 changed files with 16 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue