summaryrefslogtreecommitdiff
path: root/src/application/templates/bootstrap-3/view_user.twig
diff options
context:
space:
mode:
authorJonas Kohl2024-12-10 15:57:29 +0100
committerJonas Kohl2024-12-10 15:57:29 +0100
commitc79f34fcbbd558535c11b766d474b9e4c3d6682e (patch)
treecb9a077c0a609a9f057d885b10d4b5dd1c4b1bb9 /src/application/templates/bootstrap-3/view_user.twig
parent611ced38b4a736cfa0792998965f53b62da75374 (diff)
Fix more bugs
Diffstat (limited to 'src/application/templates/bootstrap-3/view_user.twig')
-rw-r--r--src/application/templates/bootstrap-3/view_user.twig1
1 files changed, 1 insertions, 0 deletions
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 @@
<div class="list-group margin-top">
{% for post in ctx.posts %}
<a href="?_action=viewtopic&amp;topic={{ post.topicId|url_encode }}#post-{{ post.id|url_encode }}" class="list-group-item">
+ {% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %}
{% if hasAttachments %}
<span class="badge"><span class="fa fa-paperclip"></span></span>
{% endif %}