aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/mailing_list_message.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-09-14 22:28:12 +0800
committerRunxi Yu <me@runxiyu.org>2025-09-14 22:28:12 +0800
commit01e4fd482ebcc827d3c76c00910529abbf666454 (patch)
tree300156b866864a07a0ed7680e6572ae97c20e325 /forged/templates/mailing_list_message.tmpl
parentUpdate dependencies (diff)
downloadforge-01e4fd482ebcc827d3c76c00910529abbf666454.tar.gz
forge-01e4fd482ebcc827d3c76c00910529abbf666454.tar.zst
forge-01e4fd482ebcc827d3c76c00910529abbf666454.zip
Add basic mailing listspre-refactor
Diffstat (limited to 'forged/templates/mailing_list_message.tmpl')
-rw-r--r--forged/templates/mailing_list_message.tmpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/forged/templates/mailing_list_message.tmpl b/forged/templates/mailing_list_message.tmpl
new file mode 100644
index 0000000..7bd24d6
--- /dev/null
+++ b/forged/templates/mailing_list_message.tmpl
@@ -0,0 +1,42 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+*/}}
+{{- define "mailing_list_message" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{- template "head_common" . -}}
+ <title>{{ .email_subject }} – {{ .global.forge_title -}}</title>
+ </head>
+ <body class="mailing-list-message">
+ {{- template "header" . -}}
+ <main>
+ <div class="padding-wrapper">
+ <table class="wide">
+ <thead>
+ <tr>
+ <th colspan="2" class="title-row">{{ .email_subject }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th scope="row">From</th>
+ <td>{{ .email_from }}</td>
+ </tr>
+ <tr>
+ <th scope="row">Date</th>
+ <td>{{ if .email_date.IsZero }}{{ .email_date_raw }}{{ else }}{{ .email_date }}{{ end }}</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="padding-wrapper">
+ <div class="readme">{{ .email_body_html }}</div>
+ </div>
+ </main>
+ <footer>
+ {{- template "footer" . -}}
+ </footer>
+ </body>
+</html>
+{{- end -}}