aboutsummaryrefslogtreecommitdiff
path: root/templates/group.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/group.tmpl')
-rw-r--r--templates/group.tmpl24
1 files changed, 24 insertions, 0 deletions
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 <https://runxiyu.org>
+*/}}
+{{- define "group" -}}
+{{ $group_path := .group_path }}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{ template "head_common" . }}
+ <title>{{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }} &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="group">
+ {{ template "header" . }}
+ <div class="padding-wrapper">
+ <p>{{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }}
+ {{ template "group_view" . }}
+ </div>
+ <footer>
+ {{ template "footer" . }}
+ </footer>
+ </body>
+</html>
+{{- end -}}