about summary refs log tree commit diff stats
path: root/frontend/templates/blocks/packages.gotmpl
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 14:06:06 +0200
committerAlan Pearce2024-05-17 14:06:06 +0200
commit05e61978906a08132c4340a5f9ae518134dd0fa9 (patch)
tree0ab5e550a1fe5aaf560459c40eccfdc00e298515 /frontend/templates/blocks/packages.gotmpl
parent42611df8133fc88bac5947a65a18fa095d68a951 (diff)
downloadsearchix-05e61978906a08132c4340a5f9ae518134dd0fa9.tar.lz
searchix-05e61978906a08132c4340a5f9ae518134dd0fa9.tar.zst
searchix-05e61978906a08132c4340a5f9ae518134dd0fa9.zip
feat: support searching packages
Diffstat (limited to 'frontend/templates/blocks/packages.gotmpl')
-rw-r--r--frontend/templates/blocks/packages.gotmpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl
new file mode 100644
index 0000000..68f9246
--- /dev/null
+++ b/frontend/templates/blocks/packages.gotmpl
@@ -0,0 +1,26 @@
+{{- define "hits" }}
+  {{- range . }}
+    {{- with .Data }}
+      <details id="{{ .Name }}">
+        <summary>
+          <h3>
+            {{ .Name }}
+          </h3>
+        </summary>
+        {{ .Description }}
+        <dl>
+          {{- with .Version }}
+            <dt>Version</dt>
+            <dd>{{ . }}</dd>
+          {{- end }}
+          {{- with .Definition }}
+            <dt>Defined</dt>
+            <dd>
+              <a href="{{ . }}">Source</a>
+            </dd>
+          {{- end }}
+        </dl>
+      </details>
+    {{- end }}
+  {{- end }}
+{{- end }}