From c79f34fcbbd558535c11b766d474b9e4c3d6682e Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 10 Dec 2024 15:57:29 +0100 Subject: Fix more bugs --- src/application/templates/bootstrap-3/view_user.twig | 1 + src/application/templates/modern/view_user.twig | 1 + 2 files changed, 2 insertions(+) diff --git a/src/application/templates/bootstrap-3/view_user.twig b/src/application/templates/bootstrap-3/view_user.twig index 2523bb9..6d64982 100644 --- a/src/application/templates/bootstrap-3/view_user.twig +++ b/src/application/templates/bootstrap-3/view_user.twig @@ -49,6 +49,7 @@
{% for post in ctx.posts %} + {% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %} {% if hasAttachments %} {% endif %} diff --git a/src/application/templates/modern/view_user.twig b/src/application/templates/modern/view_user.twig index f2b8440..d1f8f37 100644 --- a/src/application/templates/modern/view_user.twig +++ b/src/application/templates/modern/view_user.twig @@ -51,6 +51,7 @@ {% for post in ctx.posts %}

+ {% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %} {% if hasAttachments %} -- cgit v1.2.3