blob: f0e88f5f2ec136b3d2dedd49a4c0feae2b0a3acf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{{/*
SPDX-License-Identifier: AGPL-3.0-only
SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/}}
{{- define "mailing_list_subscribers" -}}
<!DOCTYPE html>
<html lang="en">
<head>
{{- template "head_common" . -}}
<title>{{ .list_name }} subscribers – {{ .global.forge_title -}}</title>
</head>
<body class="mailing-list-subscribers">
{{- template "header" . -}}
<main>
<div class="padding-wrapper">
<table class="wide">
<thead>
<tr>
<th colspan="2" class="title-row">Subscribers for {{ .list_name }}</th>
</tr>
<tr>
<th scope="col">Email</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{{- range .subscribers -}}
<tr>
<td>{{ .email }}</td>
<td>
{{- if $.direct_access -}}
<form method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="op" value="remove" />
<input type="hidden" name="id" value="{{ .id }}" />
<input class="btn-danger" type="submit" value="Remove" />
</form>
{{- end -}}
</td>
</tr>
{{- end -}}
</tbody>
</table>
</div>
{{- if .direct_access -}}
<div class="padding-wrapper">
<form method="POST" enctype="application/x-www-form-urlencoded">
<table>
<thead>
<tr>
<th class="title-row" colspan="2">Add subscriber</th>
</tr>
</thead>
<tbody>
<input type="hidden" name="op" value="add" />
<tr>
<th scope="row">Email</th>
<td class="tdinput"><input id="subscriber-email" name="email" type="email" /></td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="th-like" colspan="2">
<div class="flex-justify">
<div class="left"></div>
<div class="right">
<input class="btn-primary" type="submit" value="Add" />
</div>
</div>
</td>
</tr>
</tfoot>
</table>
</form>
</div>
{{- end -}}
</main>
<footer>
{{- template "footer" . -}}
</footer>
</body>
</html>
{{- end -}}
|