templates/taggr_dir.html
author terom
Sun, 20 Jan 2008 01:07:02 +0000
changeset 24 001f52cd057e
parent 23 10841abbc01f
permissions -rw-r--r--
tagging/untagging should now work fully in taggr
23
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     1
% if subdirs :
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     2
<ul>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     3
%   for name, path in subdirs :
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     4
    <li>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     5
        <a href="#" class="directory_link">${name}</a>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     6
        <div id="${path}" style="display: none" >
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     7
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     8
        </div>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
     9
    </li>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    10
%   endfor                    
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    11
</ul>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    12
% endif
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    13
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    14
<div class="images">
24
001f52cd057e tagging/untagging should now work fully in taggr
terom
parents: 23
diff changeset
    15
% for i, (id, image, tags) in enumerate(images) :
001f52cd057e tagging/untagging should now work fully in taggr
terom
parents: 23
diff changeset
    16
    <img src="../${image}" onload="image_info(this, ${i}, ${id}, [${",".join(("'%s'" % tag for tag in tags))}])" class="image" id="img_${id}" />
23
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    17
% endfor
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    18
</div>
10841abbc01f taggr2, which is starting to shape up
terom
parents:
diff changeset
    19