From b329d8cfbab0b33df88720fdf010ce57abde6cf1 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Fri, 28 Mar 2025 17:12:39 -0300 Subject: [PATCH] feat(templates): delete interactions via the editor --- templates/project.html | 57 ++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/templates/project.html b/templates/project.html index e4f8f6f..0f438dd 100644 --- a/templates/project.html +++ b/templates/project.html @@ -8,35 +8,54 @@
{{range $page := .Pages}} -
+
-
-
-
-
- {{range $key, $interaction := $page.Interactions}} - - - - {{end}} +
+ +
+ {{if (gt (len $page.Interactions) 0)}} +
+
+ {{range $interactionID, $interaction := $page.Interactions}} + + + + {{end}} +
+
+ {{else}} + {{end}} +
- + + + + + {{if (gt (len $page.Interactions) 0)}} +
+ {{range $interactionID, $interaction := $page.Interactions}} +
+ + +
+ {{end}}
- - - - + {{end}} +