From 408aed03d3454330120475ca53838a2f4fe28ea3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 8 Jun 2024 20:34:37 +0200 Subject: feat: display results in a table, showing details on click --- frontend/templates/blocks/options.gotmpl | 75 ++++++++++---------------------- 1 file changed, 23 insertions(+), 52 deletions(-) (limited to 'frontend/templates/blocks/options.gotmpl') diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index de31696..5a08bae 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -1,54 +1,25 @@ {{- define "hits" }} - {{- range . }} - {{- with .Data }} -
- -

{{ .Name }}

-
- {{ markdown .Description }} -
- {{- with .Type }} -
Type
-
{{ . }}
- {{- end }} - {{- with .Default }} - {{- if or .Text .Markdown }} -
Default
-
- {{- if .Markdown }} - {{ markdown .Markdown }} - {{- else }} -
{{ .Text }}
- {{- end }} -
- {{- end }} - {{- end }} - {{- with .Example }} - {{- if or .Text .Markdown }} -
Example
-
- {{- if .Markdown }} - {{ markdown .Markdown }} - {{- else }} -
{{ .Text }}
- {{- end }} -
- {{- end }} - {{- end }} - {{- with .RelatedPackages }} -
Related Packages
-
{{ . }}
- {{- end }} - {{- with .Declarations }} -
Declared
- {{- range . }} -
- {{ .Name }} -
- {{- end }} - {{- end }} -
-
- {{- end }} - {{- end }} + + + + + + + + + {{- range . }} + {{- with .Data }} + + + + + {{- end }} + {{- end }} + +
TitleDescription
+ {{ .Name }} + + {{ markdown (firstSentence .Description) }} + +
{{- end }} -- cgit 1.4.1