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.tmpl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 templates/group.tmpl (limited to 'templates/group.tmpl') diff --git a/templates/group.tmpl b/templates/group.tmpl new file mode 100644 index 0000000..f881458 --- /dev/null +++ b/templates/group.tmpl @@ -0,0 +1,24 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu +*/}} +{{- define "group" -}} +{{ $group_path := .group_path }} + + + + {{ template "head_common" . }} + {{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }} – {{ .global.forge_title }} + + + {{ template "header" . }} +
+

{{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }} + {{ template "group_view" . }} +

+ + + +{{- end -}} -- cgit v1.2.3