Mercurial > hg > montage
diff montage/templates/strip.html @ 5:d60a5ffbf4f4
* include a new template to display images in a grid
* refactor Images formatter
* stub for thumbnails
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 25 Dec 2009 17:22:01 -0500 |
parents | 75b19560f517 |
children | 33349e5178b3 |
line wrap: on
line diff
--- a/montage/templates/strip.html Fri Dec 25 04:21:30 2009 -0500 +++ b/montage/templates/strip.html Fri Dec 25 17:22:01 2009 -0500 @@ -10,7 +10,10 @@ <body> <py:for each="index, image in enumerate(files)"> <div> - <img src="${image['path']}" width="${width or None}" height="${height or None}"/><br/> + <a href="${image['link']}"> + <img src="${image['path']}" width="${width or None}" height="${height or None}"/> + </a> + <br/> ${image.get('title', image['description'])} </div> <hr width="${width}px" py:if="index != len(files) - 1"/>