diff view/site/library.tt @ 7:fa7a99c2d079

dox library templates and schemas
author sergey
date Wed, 14 May 2014 01:22:21 +0400
parents f1ce08199a08
children
line wrap: on
line diff
--- a/view/site/library.tt	Mon May 12 18:05:30 2014 +0400
+++ b/view/site/library.tt	Wed May 14 01:22:21 2014 +0400
@@ -0,0 +1,21 @@
+[% document.css.push(css.library) %]
+[% FOREACH coll IN model.resultset('collection').search_rs({}, {order_by = { '-desc' = 'updateDate' }}).all() %]
+<div class="library-banner">
+	<a href="[% location.Child(coll.name) %]">
+		<span class="title block">
+			$coll.name
+		</span>
+		<span class="brief block">
+			$coll.description
+		</span>
+		<span class="footer block">
+			<span class="version">
+				$coll.version
+			</span>/
+			<span class="timestamp">
+				[% coll.updateDate.clone().set_time_zone('local').strftime('%T %e %B %G') %]
+			</span>
+		</span>
+	</a>
+</div>
+[% END %]
\ No newline at end of file