From 9c5f481dbbb4b46c35302c75d3ffe3067f806100 Mon Sep 17 00:00:00 2001 From: ccl Date: Fri, 4 Dec 2020 17:17:50 +0100 Subject: [PATCH] added sections of magic words --- templates/index.html | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index fc2e262..fc6897c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,6 +31,7 @@ +{% set allmagicwords = [] %} {% for pad in pads %} @@ -43,6 +44,7 @@ {% for magicword in pad.magicwords %} {{ magicword }} + {{ allmagicwords.append(magicword) }} {% endfor %} @@ -53,9 +55,48 @@ + +
+ {% for magicword in allmagicwords | unique %} + {% if magicword != "__PUBLISH__" %} +
+

{{ magicword }}

+ + + + + + + + + {% for pad in pads %} + {% if magicword in pad.magicwords %} + + + + + + + {% endif %} + {% endfor %} + +
nameversions
+ {{ pad.padid }} + + {% for v in pad.versions %}{{ v.type }} {% endfor %} + + {% for magicword in pad.magicwords %} + {{ magicword }} + {% endfor %} +
+
+ {% endif %} + {% endfor %} +
+