diff options
Diffstat (limited to 'src/application/templates')
-rw-r--r-- | src/application/templates/bootstrap-3/view_user.twig | 1 | ||||
-rw-r--r-- | src/application/templates/modern/view_user.twig | 1 |
2 files changed, 2 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&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 %} 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 %} <a href="?_action=viewtopic&topic={{ post.topicId|url_encode }}#post-{{ post.id|url_encode }}" class="_item"> <h4 class="_heading"> + {% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %} {% if hasAttachments %} <span class="badge"> <svg viewBox="0 0 24 24" class="icon"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg> |