blob: 8accbde6fbc0289c8a3d28d960ef7320903cd149 (
plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<!DOCTYPE html>
<html lang="en">
{{template "head"}}
<body>
{{template "header" .ListName}}
<div class="container mb-5">
<div class="row">
<div class="col-12 pb-4">
<h1 class="first-header">Gentoo Archives: {{.ListName}}</h1>
<div class="table-responsive">
<table class="table table-sm ag-header-table">
<tr>
<th class="ag-header-name-col">From:</th>
<td>{{formatAddr (.Message.From)}}</td>
</tr>
<tr>
<th>To:</th>
<td>{{formatAddrList (.Message.To)}}</td>
</tr>
{{if .Message.Cc}}
<tr>
<th>Cc:</th>
<td>{{formatAddrList (.Message.Cc)}}</td>
</tr>
{{end}}
<tr>
<th>Subject:</th>
<td><strong>{{.Message.GetSubject}}</strong></td>
</tr>
<tr>
<th>Date:</th>
<td>{{.Message.Date.Format "Mon, 2 Jan 2006 15:04:05"}}</td>
</tr>
<tr>
<th>Message-Id:</th>
<td><tt>{{.Message.GetMessageId}}</tt></td>
</tr>
{{if .Message.InReplyTo}}
<tr>
<th>In Reply to:</th>
<td colspan="3"><a href="/{{.Message.InReplyTo.List}}/messages/{{.Message.InReplyTo.Id}}">{{.Message.InReplyTo.GetSubject}}</a> by {{.Message.InReplyTo.GetAuthorName}}</td>
</tr>
{{end}}
</table>
</div>
<pre class="ag-message-content">{{.Message.Body}}</pre>
{{if .Message.Attachments }}
<h3>Attachments</h3>
<div class="table-responsive">
<table class="table table-sm ag-attachment-table">
<tr>
<th>File name</th>
<th>MIME type</th>
</tr>
{{range .Message.Attachments}}
<tr>
<td>{{.Filename}}</td>
<td>{{.Mime}}</td>
</tr>
{{end}}
</table>
</div>
{{end}}
{{if .Replies}}
<div class="table-responsive">
<table class="table table-sm ag-replies-table">
<tbody><tr>
<th>Subject</th>
<th>Author</th>
</tr>
{{range .Replies}}
<tr>
<td><a href="{{.Id}}">{{.GetSubject}}</a></td>
<td>{{formatAddr .From}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}
<div class="ag-message-actions">
<a href="mailto:infra@gentoo.org?subject=Reporting mail {{.Message.Id}} on archives.g.o" class="btn btn-danger btn-sm"><span class="fa fa-fw fa-ban"></span> Report Message</a>
<div class="btn-group btn-group-sm ml-3">
<a href="https://marc.info/?i={{.Message.GetMessageId}}" class="btn btn-outline-secondary"><span class="fa fa-fw fa-share-square"></span>Find on MARC</a>
<a href="https://groups.google.com/forum/#!search/messageid${{.Message.GetMessageId}}" class="btn btn-outline-secondary"><span class="fa fa-fw fa-share-square"></span>Find on Google Groups</a>
</div>
</div>
</div>
</div>
</div>
{{template "footer"}}
<script src="/assets/message.js"></script>
</body>
</html>
|