view view/site/library.tt @ 9:3efa63d911d4

sync
author sergey
date Wed, 14 May 2014 17:29:04 +0400
parents fa7a99c2d079
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 %]