Mercurial > hg > montage
annotate montage/templates/sequence.html @ 26:ee74cf1e444b
* update templates to use head.html
* bump decoupage version to depend on
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 27 Oct 2010 09:48:04 -0700 |
parents | 2303c381151b |
children | e5336ec2ee02 |
rev | line source |
---|---|
18 | 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> | |
26
ee74cf1e444b
* update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents:
19
diff
changeset
|
8 <xi:include href="head.html"/> |
18 | 9 </head> |
10 <body> | |
11 <xi:include py:if="include" href="${include}"/> | |
12 | |
19 | 13 <center py:if="files" py:with="index = int(request.GET.get('index', 0))"> |
18 | 14 <div py:with="image = files[index]" class="image"> |
26
ee74cf1e444b
* update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents:
19
diff
changeset
|
15 <a name="${image['path']}"></a> |
18 | 16 <a href="${image['link']}"> |
17 <img src="${image['path']}" width="${width or None}" height="${height or None}"/> | |
18 </a> | |
19 <br/> | |
20 ${image.get('title', image['description'])} | |
21 </div> | |
22 <py:if test="index > 0"> | |
19 | 23 <a href="?index=${index - 1}" |
24 py:with="image=files[index - 1]"> | |
25 ${image.get("title", image.get("description", "»»"))} | |
26 </a> | |
18 | 27 </py:if> |
28 <py:if test="index < len(files)"> | |
19 | 29 <a href="?index=${index + 1}" py:with="image=files[index + 1]">${image.get('title', image.get('description', '««'))}</a> |
18 | 30 </py:if> |
31 </center> | |
26
ee74cf1e444b
* update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents:
19
diff
changeset
|
32 |
18 | 33 </body> |
34 </html> |