about summary refs log tree commit diff stats
path: root/frontend/templates/blocks
diff options
context:
space:
mode:
authorAlan Pearce2024-05-04 12:54:31 +0200
committerAlan Pearce2024-05-04 14:51:00 +0200
commit5b9e67fd5129dec75169a1a070c70f910dff6da2 (patch)
tree73a4656b60387556462e7d5384cac0919bc1da66 /frontend/templates/blocks
parenta2c97c10ee0a01277c51f85b15bdf8ee821f96db (diff)
downloadsearchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.tar.lz
searchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.tar.zst
searchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.zip
feat: frontend search implementation
Diffstat (limited to 'frontend/templates/blocks')
-rw-r--r--frontend/templates/blocks/options.gotmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl
new file mode 100644
index 0000000..3451eb3
--- /dev/null
+++ b/frontend/templates/blocks/options.gotmpl
@@ -0,0 +1,13 @@
+{{ define "results" }}
+  {{ range $opt, $data := .Results }}
+  <details>
+    <summary>
+      {{ $opt }}
+    </summary>
+    <p>
+      {{ $data.Description }}
+    </p>
+  </details>
+  {{ end }}
+</div>
+{{ end }}