X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Fmacros;h=5b6dc3a2b2fc0fb54649f399959c59caa9657254;hb=3b371b0c2e584c3b9164fef7df7faae8d58401d0;hp=f97cdd3acca801ff49ca90c4b03a8df99f30c251;hpb=3741acaec618fde1e4c230ee2a503987746235e4;p=memories.git diff --git a/templates/macros b/templates/macros index f97cdd3..5b6dc3a 100644 --- a/templates/macros +++ b/templates/macros @@ -1,20 +1,39 @@ -[% MACRO thumb(photo, album) BLOCK %] - -
+[% MACRO ministar(rating, photo) BLOCK; +IF photo.rated > 0; %] +
    +
  • Currently [%rating%]/5 Stars.
  • +
+[% END; END %] +[% MACRO minithumb(photo) BLOCK %] - [%photo.title|html%] + [%photo.title|html%] +[% END; MACRO thumb(photo, album) BLOCK %] + + - +
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 %]
+ [% minithumb(photo) %]
[% photo.title |html%] +
+ [% FOR tag = photo.tags %] [%tag %] [% END %]
Uploaded by +
Uploaded by [% photo.uploader.name |html%] -
at [% photo.uploaded %]
Add to album: