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/packages.gotmpl | 99 +++++++++---------------------- 1 file changed, 27 insertions(+), 72 deletions(-) (limited to 'frontend/templates/blocks/packages.gotmpl') diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl index 90ba0b2..cce97a0 100644 --- a/frontend/templates/blocks/packages.gotmpl +++ b/frontend/templates/blocks/packages.gotmpl @@ -1,75 +1,30 @@ {{- define "hits" }} - {{- range . }} - {{- with .Data }} -
- -

- {{- if .Broken }} - {{ .Attribute }} - {{- else }} - {{ .Attribute }} - {{- end }} -

-
- {{- if .LongDescription }} - {{ markdown .LongDescription }} - {{- else }} -

{{ .Description }}

- {{- end }} -
- {{- with .MainProgram }} -
Main Program
-
- {{ . }} -
- {{- end }} - {{- with .Homepages }} -
Homepage
-
- {{- range . }} - {{ . }} - {{- end }} -
- {{- end }} - {{- with .Version }} -
Version
-
{{ . }}
- {{- end }} - {{- with .Licenses }} -
License
-
- {{- range . }} - {{- if .URL }} - {{ or .FullName .Name }} - {{- else }} - {{ or .FullName .Name }} - {{- end }} - {{- with .AppendixURL }} - Appendix - {{- end }} + + + + + + + + + + {{- range . }} + {{- with .Data }} + + + + + + {{- end }} + {{- end }} + +
AttributeNameDescription
+ {{- with .Attribute }} + {{ . }} {{- end }} - - {{- end }} - {{- with .Maintainers }} -
Maintainer{{ if gt (len .) 1 }}s{{ end }}
-
- {{- range . }} - {{- if .Github }} - {{ .Name }} - {{- else }} - {{ .Name }} - {{- end }} - {{- end }} -
- {{- end }} - {{- with .Definition }} -
Defined
-
- Source -
- {{- end }} - - - {{- end }} - {{- end }} +
+ {{ .Name }} + + {{ .Description }} +
{{- end }} -- cgit 1.4.1