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 %} +
+