summaryrefslogtreecommitdiff
path: root/root/cloud/lastcloud.tt
diff options
context:
space:
mode:
Diffstat (limited to 'root/cloud/lastcloud.tt')
-rw-r--r--root/cloud/lastcloud.tt12
1 files changed, 12 insertions, 0 deletions
diff --git a/root/cloud/lastcloud.tt b/root/cloud/lastcloud.tt
new file mode 100644
index 0000000..c02e2b1
--- /dev/null
+++ b/root/cloud/lastcloud.tt
@@ -0,0 +1,12 @@
+[% i = 1 %]
+[% USE table_class = Class('WillCloud::Model::CDBI::Engine') %]
+[% FOREACH cloud IN last_cloud %]
+ [% i %]. <a href="[% base _ cloud.permalink %]" onClick="window.open('[% base _ cloud.permalink %]','cloud for [% cloud.keyword %]', 'width=400,height=200,resizable=yes,scrollbars=yes');return false;" title="[% cloud.id %]">[% cloud.keyword FILTER truncate(30) %]
+ [% IF cloud.truncation == 1 %]
+ [truncation]
+ [% END %]
+ [% object = table_class.search(engine_id => cloud.engine_id) %]
+ ([% object.name %])
+ </a><br />
+ [% i = i +1 %]
+[% END %] \ No newline at end of file