Mercurial > hg > montage
annotate montage/templates/background.html @ 40:77c3439e76bb default tip
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 25 Nov 2020 11:00:17 -0800 |
parents | 5a3945882d04 |
children |
rev | line source |
---|---|
21 | 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'])"> | |
26
ee74cf1e444b
* update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents:
21
diff
changeset
|
8 <xi:include href="head.html"/> |
21 | 9 <style type="text/css"> |
30
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
10 body { |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
11 background-image: url('${background}'); |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
12 background-repeat:no-repeat; |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
13 background-position: right; |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
14 background-attachment: fixed; |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
15 background-size: 100% 100%; |
26
ee74cf1e444b
* update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents:
21
diff
changeset
|
16 } |
21 | 17 </style> |
18 </head> | |
19 <body> | |
20 <xi:include py:if="include" href="${include}"/> | |
21 | |
22 <div class="strip"> | |
23 <py:for each="index, image in enumerate(files)"> | |
24 <div class="image"> | |
30
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
25 <a name="${image['name']}"></a> |
5a3945882d04
improvements in background.html template
Jeff Hammel <jhammel@mozilla.com>
parents:
26
diff
changeset
|
26 <a href="${'?image=' + image['name']}#${image['name']}"> |
21 | 27 <img src="${image['path']}" width="${width or None}" height="${height or None}"/> |
28 </a> | |
29 <br/> | |
30 ${image.get('title', image['description'])} | |
31 </div> | |
32 </py:for> | |
33 </div> <!-- strip --> | |
34 | |
35 </body> | |
36 </html> |