Mercurial > hg > montage
annotate montage/templates/strip.html @ 20:c2d59b93aa43
dont display hr if width not specified
author | k0s <k0scist@gmail.com> |
---|---|
date | Sat, 09 Jan 2010 17:02:49 -0500 |
parents | 17ccb1022656 |
children | ee74cf1e444b |
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> |
17 | 9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> |
2 | 10 </head> |
11 <body> | |
9 | 12 <xi:include py:if="include" href="${include}"/> |
13 | |
14 <center> | |
2 | 15 <py:for each="index, image in enumerate(files)"> |
9 | 16 <div class="image"> |
5
d60a5ffbf4f4
* include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents:
4
diff
changeset
|
17 <a href="${image['link']}"> |
d60a5ffbf4f4
* include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents:
4
diff
changeset
|
18 <img src="${image['path']}" width="${width or None}" height="${height or None}"/> |
d60a5ffbf4f4
* include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents:
4
diff
changeset
|
19 </a> |
d60a5ffbf4f4
* include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents:
4
diff
changeset
|
20 <br/> |
3
75a57e8f72d4
add logic for titles (admittedly, not wonderful logic)
k0s <k0scist@gmail.com>
parents:
2
diff
changeset
|
21 ${image.get('title', image['description'])} |
2 | 22 </div> |
20
c2d59b93aa43
dont display hr if width not specified
k0s <k0scist@gmail.com>
parents:
17
diff
changeset
|
23 <hr width="${width}px" py:if="(index != len(files) - 1) and width"/> |
2 | 24 </py:for> |
9 | 25 </center> |
2 | 26 </body> |
27 </html> |