view 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 source

[% 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 %]