[% WRAPPER layout.tt title="News items" %] [% PROCESS common.tt %] [% USE String %]

News items

[% IF newsItems.size == 0 %]

No news items

[% ELSE %] [% FOREACH i IN newsItems %] [% contents = String.new(i.contents) %] [% END %]
DateContents
[% INCLUDE renderDateTime timestamp=i.createtime %] [% contents.replace('\n','
\n') %]
[ [% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('news_delete') i.id) content = "Delete" confirmmsg = "Are you sure you want to delete this news item?" %] ]
[% END %]

Add news item

[% END %]