Mercurial > hg > montage
comparison montage/templates/background.html @ 26:ee74cf1e444b
* update templates to use head.html
* bump decoupage version to depend on
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 27 Oct 2010 09:48:04 -0700 |
| parents | 7be864865c7f |
| children | 5a3945882d04 |
comparison
equal
deleted
inserted
replaced
| 25:f3b6bf903499 | 26:ee74cf1e444b |
|---|---|
| 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 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 py:with="background = request.GET.get('image', files[0]['link'])"> | 7 <head py:with="background = request.GET.get('image', files[0]['link'])"> |
| 8 <title>${title or path}</title> | 8 <xi:include href="head.html"/> |
| 9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> | |
| 10 <style type="text/css"> | 9 <style type="text/css"> |
| 11 body { background-image: url('${background}'); | 10 body { background-image: url('${background}'); |
| 12 background-repeat:no-repeat; | 11 background-repeat:no-repeat; |
| 13 background-position: right; | 12 background-position: right; |
| 14 background-attachment: fixed; | 13 background-attachment: fixed; |
| 15 } | 14 } |
| 16 </style> | 15 </style> |
| 17 </head> | 16 </head> |
| 18 <body> | 17 <body> |
| 19 <xi:include py:if="include" href="${include}"/> | 18 <xi:include py:if="include" href="${include}"/> |
| 20 | 19 |
