comparison montage/templates/sequence.html @ 18:c49d93044981

added sequence template
author egj@socialplanning.org
date Mon, 04 Jan 2010 04:52:16 +0000
parents
children 2303c381151b
comparison
equal deleted inserted replaced
17:17ccb1022656 18:c49d93044981
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>
8 <title>${title or path}</title>
9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/>
10 </head>
11 <body>
12 <xi:include py:if="include" href="${include}"/>
13
14 <center py:if="files" py:with="index = int(request.GET.get('index', 0)">
15 <div py:with="image = files[index]" class="image">
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 &gt; 0">
23 <a href="?index=${index - 1}" py:with="image=${files[index - 1]}">${image.get('title, image.get('description', '<<'))}</a>
24 </py:if>
25 <py:if test="index &lt; len(files)">
26 <a href="?index=${index + 1}" py:with="image=${files[index +1 1]}">${image.get('title, image.get('description', '>>'))}</a>
27 </py:if>
28 </center>
29 </body>
30 </html>