[% WRAPPER layout.tt title="News items" %] [% PROCESS common.tt %] [% USE String %]
No news items
[% ELSE %]Date | Contents | [% FOREACH i IN newsItems %] [% contents = String.new(i.contents) %] |
---|---|---|
[% 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?" %] ] |