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}} + - + + + + Add interaction + + + {{if (gt (len $page.Interactions) 0)}} + + {{range $interactionID, $interaction := $page.Interactions}} + + + + 🗑️{{$interaction.URL}} + + + {{end}} - - - - Add interaction - - + {{end}} +