annotate montage/templates/strip.html @ 40:77c3439e76bb default tip

py3
author Jeff Hammel <k0scist@gmail.com>
date Wed, 25 Nov 2020 11:00:17 -0800
parents b61fe6b0ebe1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
1 <!DOCTYPE html
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
5 xmlns:py="http://genshi.edgewall.org/"
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
6 xmlns:xi="http://www.w3.org/2001/XInclude">
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
7 <head>
26
ee74cf1e444b * update templates to use head.html
Jeff Hammel <jhammel@mozilla.com>
parents: 20
diff changeset
8 <xi:include href="head.html"/>
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
9 </head>
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
10 <body>
9
33349e5178b3 fix up templates
k0s <k0scist@gmail.com>
parents: 5
diff changeset
11 <xi:include py:if="include" href="${include}"/>
33349e5178b3 fix up templates
k0s <k0scist@gmail.com>
parents: 5
diff changeset
12
33349e5178b3 fix up templates
k0s <k0scist@gmail.com>
parents: 5
diff changeset
13 <center>
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
14 <py:for each="index, image in enumerate(files)">
9
33349e5178b3 fix up templates
k0s <k0scist@gmail.com>
parents: 5
diff changeset
15 <div class="image">
29
b61fe6b0ebe1 add anchors to strip.html
Jeff Hammel <jhammel@mozilla.com>
parents: 26
diff changeset
16 <a name="${image['name']}"/>
5
d60a5ffbf4f4 * include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents: 4
diff changeset
17 <a href="${image['link']}">
d60a5ffbf4f4 * include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents: 4
diff changeset
18 <img src="${image['path']}" width="${width or None}" height="${height or None}"/>
d60a5ffbf4f4 * include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents: 4
diff changeset
19 </a>
d60a5ffbf4f4 * include a new template to display images in a grid
k0s <k0scist@gmail.com>
parents: 4
diff changeset
20 <br/>
3
75a57e8f72d4 add logic for titles (admittedly, not wonderful logic)
k0s <k0scist@gmail.com>
parents: 2
diff changeset
21 ${image.get('title', image['description'])}
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
22 </div>
20
c2d59b93aa43 dont display hr if width not specified
k0s <k0scist@gmail.com>
parents: 17
diff changeset
23 <hr width="${width}px" py:if="(index != len(files) - 1) and width"/>
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
24 </py:for>
9
33349e5178b3 fix up templates
k0s <k0scist@gmail.com>
parents: 5
diff changeset
25 </center>
2
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
26 </body>
4b8aa9b0a45b montage actually does something now
k0s <k0scist@gmail.com>
parents:
diff changeset
27 </html>