From 01e4fd482ebcc827d3c76c00910529abbf666454 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 14 Sep 2025 22:28:12 +0800 Subject: Add basic mailing lists --- forged/templates/mailing_list.tmpl | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 forged/templates/mailing_list.tmpl (limited to 'forged/templates/mailing_list.tmpl') diff --git a/forged/templates/mailing_list.tmpl b/forged/templates/mailing_list.tmpl new file mode 100644 index 0000000..9144253 --- /dev/null +++ b/forged/templates/mailing_list.tmpl @@ -0,0 +1,56 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu +*/}} +{{- define "mailing_list" -}} + + + + {{- template "head_common" . -}} + {{- index .group_path 0 -}}{{- range $i, $s := .group_path -}}{{- if gt $i 0 -}}/{{- $s -}}{{- end -}}{{- end }}/-/lists/{{ .list_name }} – {{ .global.forge_title -}} + + + {{- template "header" . -}} +
+
+

{{ .list_name }}

+ {{- if .list_description -}} +

{{ .list_description }}

+ {{- end -}} +

Address: {{ .list_email_address }}

+ {{- if .direct_access -}} +

Manage subscribers

+ {{- end -}} +
+
+ + + + + + + + + + + + + + {{- range .list_emails -}} + + + + + + + {{- end -}} + +
Archive
TitleSenderDateRaw
{{ .title }}{{ .sender }}{{ .date }}download
+
+
+ + + +{{- end -}} -- cgit v1.2.3