/
combined.tmpl
73 lines (69 loc) · 2.86 KB
/
combined.tmpl
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
<div style="border:1px solid #d3d3d3;max-width:850px;font-family:Arial,sans-serif;color:#000000;">
<!-- begin header -->
<div style="background-color:#f5f5f5;padding:10px 20px">
<table cellpadding="0" cellspacing="0" style="width:100%">
<tbody>
<tr>
<td style="width:70%">
</td>
<td style="text-align:right;width:30%">
<span style="font:20px/24px arial"><a style="color:#dd4b39; text-decoration:none;" href="https://groups.google.com/" target="_blank">Google Groups</a></span>
</td>
<td style="width:32px;">
<a href="https://groups.google.com/" target="_blank"><img style="border:0;vertical-align:middle"
src="http://www.google.com/images/icons/product/groups-32.png"></a>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header -->
<div style="padding:20px; background-color: #f5f5f5;">
{{range $groupIndex, $group := .Groups}}
<!-- begin group {{$groupIndex}} thread summary -->
<div style="font-family: arial; color: #222222; padding: 0px">
<a name="{{$group.Name}}_digest_top" style="font-size:21px;">
{{$group.Name}}
</a><br>
<span style="font-size:11px">
<a style="color:#1155cc;text-decoration:none"
href="{{$group.ThreadListingURL}}">View all threads</a>
</span>
</div>
<div style="font: 13px/18px arial; color:#222222; padding: 0px; margin-bottom:30px">
<ul style="margin-left:3px; padding-left:0px">
{{range $threadIndex, $thread := $group.Threads}}
<li>
<a style="color:#1155cc;text-decoration:none" href="#{{$group.Name}}_thread_{{$threadIndex}}">
{{$thread.Subject}}</a> -
<span style="color:#777777">{{len $thread.Updates}} Updates</span> <!-- TODO: update vs. updates -->
</li>
{{end}}
</ul>
</div>
<!-- end group {{$groupIndex}} thread summary -->
{{end}}
{{range $groupIndex, $group := .Groups}}
<!-- begin group {{$groupIndex}} thread listing -->
{{range $threadIndex, $thread := $group.Threads}}
<a name="{{$group.Name}}_thread_{{$threadIndex}}"></a>
<div style="display:inline-block; font-family: arial; padding: 4px 0 5px 0px;">
<a target="_blank" href="{{$thread.URL}}" style="font-size:21px; color:#1155CC; text-decoration:none">
{{$thread.Subject}}
</a>
</div>
<table style="border-collapse: collapse; width: 100%">
{{range $updateIndex, $update := $thread.Updates}}
<tr>
{{$update.RawTRInnerHTML}}
</tr>
{{end}}
</table>
<div style="align:right; font-size:11px; margin-bottom: 40px; margin-top:5px;">
<a style="color:#1155cc;text-decoration:none" href="#{{$group.Name}}_digest_top">Back to top</a>
</div>
{{end}}
<!-- end group {{$groupIndex}} thread listing -->
{{end}}
</div>
</div>