Mercurial > hg > montage
annotate montage/templates/strip.html @ 4:75b19560f517
make the hr only as big as the picture
| author | k0s <k0scist@gmail.com> |
|---|---|
| date | Fri, 25 Dec 2009 04:21:30 -0500 |
| parents | 75a57e8f72d4 |
| children | d60a5ffbf4f4 |
| rev | line source |
|---|---|
| 2 | 1 <!DOCTYPE html |
| 2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| 4 <html xmlns="http://www.w3.org/1999/xhtml" | |
| 5 xmlns:py="http://genshi.edgewall.org/" | |
| 6 xmlns:xi="http://www.w3.org/2001/XInclude"> | |
| 7 <head> | |
|
3
75a57e8f72d4
add logic for titles (admittedly, not wonderful logic)
k0s <k0scist@gmail.com>
parents:
2
diff
changeset
|
8 <title>${title or path}</title> |
| 2 | 9 </head> |
| 10 <body> | |
| 11 <py:for each="index, image in enumerate(files)"> | |
| 12 <div> | |
| 13 <img src="${image['path']}" width="${width or None}" height="${height or None}"/><br/> | |
|
3
75a57e8f72d4
add logic for titles (admittedly, not wonderful logic)
k0s <k0scist@gmail.com>
parents:
2
diff
changeset
|
14 ${image.get('title', image['description'])} |
| 2 | 15 </div> |
|
4
75b19560f517
make the hr only as big as the picture
k0s <k0scist@gmail.com>
parents:
3
diff
changeset
|
16 <hr width="${width}px" py:if="index != len(files) - 1"/> |
| 2 | 17 </py:for> |
| 18 </body> | |
| 19 </html> |
