comparison montage/templates/sequence.html @ 32:4a81659a17f7

formatting
author Jeff Hammel <k0scist@gmail.com>
date Sun, 30 Mar 2014 14:18:51 -0700
parents e5336ec2ee02
children 87ce035dd4a0
comparison
equal deleted inserted replaced
31:d98c9e7415c3 32:4a81659a17f7
4 <html xmlns="http://www.w3.org/1999/xhtml" 4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:py="http://genshi.edgewall.org/"
6 xmlns:xi="http://www.w3.org/2001/XInclude"> 6 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <head> 7 <head>
8 <xi:include href="head.html"/> 8 <xi:include href="head.html"/>
9 <style>
10 .spacer {
11 width: 3em;
12 }
9 </head> 13 </head>
10 <body> 14 <body>
11 <xi:include py:if="include" href="${include}"/> 15 <xi:include py:if="include" href="${include}"/>
12 16
13 <center py:if="files" py:with="index = int(request.GET.get('index', 0))"> 17 <center py:if="files" py:with="index = int(request.GET.get('index', 0))">
14 <div py:if="index in range(len(files))" py:with="image = files[index]" class="image"> 18 <div py:if="index in range(len(files))" py:with="image = files[index]" class="image">
15 <a name="${image['path']}"></a> 19 <a name="${image['path']}"></a>
16 <a href="${image['link']}"> 20 <a href="${image['link']}">
17 <img src="${image['path']}" width="${width or None}" height="${height or None}"/> 21 <img src="${image['path']}" width="${width or None}" height="${height or None}" title="${image.get('title', image[description])}"/>
18 </a> 22 </a>
19 <br/> 23 <br/>
20 ${image.get('title', image['description'])} 24 <p py:if="${image.get('title', None)">
25 <i>${image.get('title', '')</i>
26 </p>
27 ${image['description'])}
21 </div> 28 </div>
22 <py:if test="(index - 1) in range(len(files))"> 29 <py:if test="(index - 1) in range(len(files))">
23 <a href="?index=${index - 1}" py:with="image=files[index - 1]"> 30 <a href="?index=${index - 1}" py:with="image=files[index - 1]">
24 ${image.get('title') or image.get('description') or '&laquo;&laquo;'} 31 ${image.get('title') or image.get('description') or '&laquo;&laquo;'}
25 </a> 32 </a>
26 </py:if> 33 </py:if>
34 <span class="spacer"></span>
27 <py:if test="(index + 1) in range(len(files))"> 35 <py:if test="(index + 1) in range(len(files))">
28 <a href="?index=${index + 1}" py:with="image=files[index + 1]"> 36 <a href="?index=${index + 1}" py:with="image=files[index + 1]">
29 ${image.get('title') or image.get('description') or '&raquo;&raquo;'} 37 ${image.get('title') or image.get('description') or '&raquo;&raquo;'}
30 </a> 38 </a>
31 </py:if> 39 </py:if>