From a69c9a4f25ca8fafdd5a2285ec2480fd3e3b524b Mon Sep 17 00:00:00 2001 From: rainydaysavings Date: Sat, 5 Sep 2020 06:37:30 +0100 Subject: [PATCH] [TWIG] Improving view template structure --- templates/note/view.html.twig | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/note/view.html.twig b/templates/note/view.html.twig index 11ce95837a..c96e0cf29e 100644 --- a/templates/note/view.html.twig +++ b/templates/note/view.html.twig @@ -10,11 +10,21 @@
{% for attachment in note.getAttachments() %} {% if attachment.mimetype starts with 'image/' %} - {{ attachment.getTitle() }} +
+ {{ attachment.getTitle() }} + {{ attachment.getTitle() }} + +
{% elseif attachment.mimetype starts with 'video/' %} -