templates/taggr_dir.html
changeset 24 001f52cd057e
parent 23 10841abbc01f
equal deleted inserted replaced
23:10841abbc01f 24:001f52cd057e
    10 %   endfor                    
    10 %   endfor                    
    11 </ul>
    11 </ul>
    12 % endif
    12 % endif
    13 
    13 
    14 <div class="images">
    14 <div class="images">
    15 % for key, image in images :
    15 % for i, (id, image, tags) in enumerate(images) :
    16     <img src="../${image}" onload="image_loaded(this)" class="image" id="${key}" />
    16     <img src="../${image}" onload="image_info(this, ${i}, ${id}, [${",".join(("'%s'" % tag for tag in tags))}])" class="image" id="img_${id}" />
    17 % endfor
    17 % endfor
    18 </div>
    18 </div>
    19 
    19