mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): only show comments partial if they exist
This was incorrectly displaying a comment section header when no comments existed. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
db2718fcba
commit
ab8a44cede
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
{% set pkgname = result.Name %}
|
||||
{% set pkgbase_id = result.ID %}
|
||||
{% set comments = comments %}
|
||||
{% include "partials/packages/comments.html" %}
|
||||
{% if comments.count() %}
|
||||
{% include "partials/packages/comments.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Reference in a new issue