From d1391b6c98b7f74a85b2a83ce2f0d48a3bf5bfc2 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 8 Feb 2007 21:00:51 +0000 Subject: [PATCH] My God, it's full of stars. git-svn-id: http://svn.simon-cozens.org/memories/trunk@18 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- templates/macros | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/templates/macros b/templates/macros index 05824ef..514f270 100644 --- a/templates/macros +++ b/templates/macros @@ -1,3 +1,9 @@ +[% MACRO ministar(rating, photo) BLOCK; +IF photo.rated > 0; %] + +[% END; END %] [% MACRO minithumb(photo) BLOCK %] [%photo.title|html%] @@ -16,10 +22,17 @@ [% FOR tag = photo.tags %] [%tag %] [% END %] - Uploaded by + Uploaded by [% photo.uploader.name |html%] -
at [% photo.uploaded %] +
at [% photo.uploaded %] + [% SET r = photo.approx_rating %] +
+[% IF r > 0 OR photo.hit_count > 0 %] + [% photo.hit_count %] views + [% IF r > 0 %]
[% ministar(r, photo) %] in [%photo.rated %] ratings [% END %] +[% END %] + [% IF request.user %] [% IF album == 1 %] Add to album: -- 2.39.5