X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Fmacros;h=6acc624c20a3227563e97b10f979af595ad1c21f;hb=c52553fd02c4d741d6ebbc592978a737779db6b9;hp=05824ef88ce77ba83437d3613c0422b23bd796f5;hpb=b9d021d4af1018ac2c60640678c1b790251190e9;p=memories.git diff --git a/templates/macros b/templates/macros index 05824ef..6acc624 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,18 @@ [% 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 %] view[%IF photo.hit_count>1%]s[% END %] + [% IF r > 0 %]
[% ministar(r, photo) %] in [%photo.rated %] + rating[%IF photo.rated > 1%]s[%END%] [% END %] +[% END %] + [% IF request.user %] [% IF album == 1 %] Add to album: