From 8df293c0ad8b8be9f43f2d5dc1334b8546d6f470 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 17:37:57 +0200 Subject: feat: display more information about packages --- frontend/templates/blocks/packages.gotmpl | 49 +++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl index 68f9246..472b86e 100644 --- a/frontend/templates/blocks/packages.gotmpl +++ b/frontend/templates/blocks/packages.gotmpl @@ -4,15 +4,60 @@

- {{ .Name }} + {{- if .Broken }} + {{ .Name }} + {{- else }} + {{ .Name }} + {{- end }}

- {{ .Description }} +

{{ or .LongDescription .Description }}

+ {{- 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 }} + {{- end }} +
+ {{- end }} + {{- with .Maintainers }} +
Maintainer{{ if gt (len .) 1 }}s{{ end }}
+
+ {{- range . }} + {{- if .Github }} + {{ .Name }} + {{- else }} + {{ .Name }} + {{- end }} + {{- end }} +
+ {{- end }} {{- with .Definition }}
Defined
-- cgit 1.4.1