root/trunk/plagger/templates/plugins/gmail_notify.tt

Revision 5 (checked in by miyagawa, 15 years ago)

fixed empty tags bug

Line 
1 <div>
2 <div>
3 [% IF feed.image %]<a href="[% feed.image.link %]"><img style="border:0" align="right" src="[% feed.image.url | html %]" alt="[% feed.image.title | html %]" /></a>[% END %]
4 [% IF cfg.group_items %]<strong style="font-weight:bold;font-size:1.2em">[% item.title %]</strong><br />[% END %]
5 [% SET link = item.link || item.id -%]
6 Link: <a href="[% link | html %]">[% link | html %]</a><br />
7 [% IF item.author %]by [% item.author | html %][% END %][% IF item.tags.size %] on [% item.tags.join(',') %][% END %]</div>
8 [% IF item.body -%]
9 [% IF item.body.match('(?i)^<p[ >]') %][% item.body %][% ELSE %]<div style="padding: 1em 0">[% item.body %]</div>[% END %]
10 [% ELSE %]<br />[% END %]
11 <div style="font-size:0.8em">[% IF item.date %]Posted on [% item.date.format('Mail') %][% END %] | <a href="[% link | html %]">permalink</a> | <a href="[% feed.link | html %]">[% feed.title | html %]</a>[% FOREACH widget = item.widgets %]| [% widget.html %][% END %]<br clear="all" /></div>
12 </div>
Note: See TracBrowser for help on using the browser.