comparison montage/templates/grid.html @ 9:33349e5178b3

fix up templates
author k0s <k0scist@gmail.com>
date Fri, 25 Dec 2009 18:56:23 -0500
parents d60a5ffbf4f4
children 6a33dc59e4a6
comparison
equal deleted inserted replaced
8:93af41dcff3a 9:33349e5178b3
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 <title>${title or path}</title> 8 <title>${title or path}</title>
9 <link py:for="sheet in stylesheets" rel="stylesheet" type="text/css" href="${sheet}"/>
9 </head> 10 </head>
10 <body> 11 <body>
12 <xi:include py:if="include" href="${include}"/>
13
11 <center> 14 <center>
12 <table> 15 <table class="image">
13 <tr py:for="row in range(len(files)/columns)"> 16 <tr py:for="row in range(len(files)/columns)">
14 <td py:for="col in range(columns)" py:with="image = files[row*columns + col]"> 17 <td py:for="col in range(columns)" py:with="image = files[row*columns + col]">
15 <center> 18 <center>
16 <img src="${image['path']}" width="${width or None}" height="${height or None}"/><br/> 19 <a href="${image['link']}">
20 <img src="${image['path']}" width="${width or None}" height="${height or None}"/>
21 </a>
22 <br/>
17 ${image.get('title', image['description'])} 23 ${image.get('title', image['description'])}
18 </center> 24 </center>
19 </td> 25 </td>
20 </tr> 26 </tr>
21 <tr py:if="len(files) % columns" py:with="row = len(files) / columns"> 27 <tr py:if="len(files) % columns" py:with="row = len(files) / columns">