From be5e457d1bbb5ba44651064cd250918a8dfae3b0 Mon Sep 17 00:00:00 2001 From: tim Date: Sat, 23 Dec 2023 23:31:08 +0100 Subject: [PATCH] Move created by badge to the right --- templates/snip/index.html.twig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/snip/index.html.twig b/templates/snip/index.html.twig index 7c20c2f..221109a 100644 --- a/templates/snip/index.html.twig +++ b/templates/snip/index.html.twig @@ -6,14 +6,17 @@

{{ title }}

Add -

+ +

{% for snip in snips %} - - {% if snip.createdBy == app.user %} - {{ include('snip/badge.html.twig', {snip: snip}) }} - {% endif %} - {{ snip }} + + + {% if snip.createdBy == app.user %} + {{ include('snip/badge.html.twig', {snip: snip}) }} + {% endif %} + {{ snip }} + {% if snip.createdBy != app.user %} {{ include('user/badge.html.twig', {user: snip.createdBy}) }} {% endif %}