hpr-tools/Community_News/mailnote_template.tpl

22 lines
981 B
Smarty

[%# mailnote_template.tpl 2015-06-12
# This is the main (and default) template used by the script
# 'summarise_mail'. It generates an HTML snippet which simply lists all of
# the message threads passed to it in the 'threads' hash and reports the
# total. This HTML is then inserted into the notes generated by
# the 'make_shownotes' script.
-%]
[%- aa = 'archived-at' -%]
<ol>
[%- FOREACH key IN threads.keys.sort %]
<li><em>From:</em> [% threads.$key.from.0 FILTER html_entity %]<br/>
<em>Date:</em> [% threads.$key.date %]<br/>
<em>Subject:</em> [% threads.$key.subject FILTER html_entity %]<br/>
<em>Link:</em> <a href="[% threads.$key.thread %]" target="_blank">[% threads.$key.thread %]</a><br/>
<em>Messages:</em> [% threads.$key.count %]<br/>[% key != threads.keys.sort.last ? '<br/>' : '' %]</li>
[%- END %]
</ol>
Total messages this month: [% total %]<br/>
[%#
# vim: syntax=tt2:ts=8:sw=4:ai:et:tw=78:fo=tcrqn21
-%]