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>
|
|
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
|
19
|
14 <center py:if="files" py:with="index = int(request.GET.get('index', 0))">
|
18
|
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 > 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>
|
|
32 </body>
|
|
33 </html>
|