changeset 24 | 001f52cd057e |
parent 23 | 10841abbc01f |
--- a/templates/taggr_dir.html Thu Jan 17 01:56:04 2008 +0000 +++ b/templates/taggr_dir.html Sun Jan 20 01:07:02 2008 +0000 @@ -12,8 +12,8 @@ % endif <div class="images"> -% for key, image in images : - <img src="../${image}" onload="image_loaded(this)" class="image" id="${key}" /> +% for i, (id, image, tags) in enumerate(images) : + <img src="../${image}" onload="image_info(this, ${i}, ${id}, [${",".join(("'%s'" % tag for tag in tags))}])" class="image" id="img_${id}" /> % endfor </div>