Mercurial > hg > montage
changeset 21:7be864865c7f
add missing background.html
author | egj@ixia |
---|---|
date | Thu, 14 Jan 2010 05:53:19 -0500 |
parents | c2d59b93aa43 |
children | ac84c04a8255 |
files | montage/templates/background.html |
diffstat | 1 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/montage/templates/background.html Thu Jan 14 05:53:19 2010 -0500 @@ -0,0 +1,34 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + xmlns:xi="http://www.w3.org/2001/XInclude"> + <head py:with="background = request.GET.get('image', files[0]['link'])"> + <title>${title or path}</title> + <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> + <style type="text/css"> + body { background-image: url('${background}'); +background-repeat:no-repeat; +background-position: right; +background-attachment: fixed; +} + </style> + </head> + <body> + <xi:include py:if="include" href="${include}"/> + + <div class="strip"> + <py:for each="index, image in enumerate(files)"> + <div class="image"> + <a href="${'?image=' + image['link']}"> + <img src="${image['path']}" width="${width or None}" height="${height or None}"/> + </a> + <br/> + ${image.get('title', image['description'])} + </div> + </py:for> + </div> <!-- strip --> + + </body> +</html>