From 8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 6 Mar 2025 15:17:57 +0800 Subject: *: Support subgroups via SQL recursion --- templates/_group_view.tmpl | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 templates/_group_view.tmpl (limited to 'templates/_group_view.tmpl') diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl new file mode 100644 index 0000000..4783162 --- /dev/null +++ b/templates/_group_view.tmpl @@ -0,0 +1,48 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu +*/}} +{{- define "group_view" -}} +{{ if .subgroups }} + + + + + + + + {{- range .subgroups }} + + + + + {{- end }} + +
Subgroups
+ {{ .Name }} + + {{ .Description }} +
+{{ end }} +{{ if .repos }} + + + + + + + + {{- range .repos }} + + + + + {{- end }} + +
Repos
+ {{ .Name }} + + {{ .Description }} +
+{{ end }} +{{- end -}} -- cgit v1.2.3