Mercurial > hg > montage
comparison montage/templates/background.html @ 21:7be864865c7f
add missing background.html
author | egj@ixia |
---|---|
date | Thu, 14 Jan 2010 05:53:19 -0500 |
parents | |
children | ee74cf1e444b |
comparison
equal
deleted
inserted
replaced
20:c2d59b93aa43 | 21:7be864865c7f |
---|---|
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 py:with="background = request.GET.get('image', files[0]['link'])"> | |
8 <title>${title or path}</title> | |
9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> | |
10 <style type="text/css"> | |
11 body { background-image: url('${background}'); | |
12 background-repeat:no-repeat; | |
13 background-position: right; | |
14 background-attachment: fixed; | |
15 } | |
16 </style> | |
17 </head> | |
18 <body> | |
19 <xi:include py:if="include" href="${include}"/> | |
20 | |
21 <div class="strip"> | |
22 <py:for each="index, image in enumerate(files)"> | |
23 <div class="image"> | |
24 <a href="${'?image=' + image['link']}"> | |
25 <img src="${image['path']}" width="${width or None}" height="${height or None}"/> | |
26 </a> | |
27 <br/> | |
28 ${image.get('title', image['description'])} | |
29 </div> | |
30 </py:for> | |
31 </div> <!-- strip --> | |
32 | |
33 </body> | |
34 </html> |