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/_group_view.tmpl | 25 ++++++++ forged/templates/group.tmpl | 42 +++++++++++++ forged/templates/mailing_list.tmpl | 56 ++++++++++++++++++ forged/templates/mailing_list_message.tmpl | 42 +++++++++++++ forged/templates/mailing_list_subscribers.tmpl | 82 ++++++++++++++++++++++++++ 5 files changed, 247 insertions(+) create mode 100644 forged/templates/mailing_list.tmpl create mode 100644 forged/templates/mailing_list_message.tmpl create mode 100644 forged/templates/mailing_list_subscribers.tmpl (limited to 'forged/templates') diff --git a/forged/templates/_group_view.tmpl b/forged/templates/_group_view.tmpl index 92b6639..ca8062d 100644 --- a/forged/templates/_group_view.tmpl +++ b/forged/templates/_group_view.tmpl @@ -53,4 +53,29 @@ {{- end -}} +{{- if .mailing_lists -}} + + + + + + + + + + + + {{- range .mailing_lists -}} + + + + + {{- end -}} + +
Mailing lists
NameDescription
+ {{- .Name -}} + + {{- .Description -}} +
+{{- end -}} {{- end -}} diff --git a/forged/templates/group.tmpl b/forged/templates/group.tmpl index 3338f9b..531559a 100644 --- a/forged/templates/group.tmpl +++ b/forged/templates/group.tmpl @@ -31,6 +31,7 @@ + Name @@ -72,6 +73,47 @@ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ Create mailing list +
Name + +
Description + +
+
+
+
+
+ +
+
+
+
+
{{- end -}}