-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.mako
60 lines (53 loc) · 1.01 KB
/
index.mako
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<head>
<title>${thisdir}</title>
<style>
body {
margin: 12px;
font-family: Helvetica;
font-weight: 300;
}
#links ul {
list-style-type: square;
}
#links ul li {
padding: 2px 0;
}
#images .imgwrapper {
display: inline-block;
text-align: center;
padding: 8px 4px;
}
#images .img {
width: ${thumb_width}px;
padding-bottom: 4px;
}
#images .img img {
max-width: ${thumb_width}px;
max-height: ${thumb_width}px;
}
</style>
</head>
<body>
<h1>${thisdir}</h1>
% if subdirectories:
<div id="links">
<ul>
% for subdir in subdirectories:
<li><a href="${subdir}/index.html">${subdir}</a>
% endfor
</ul>
</div>
% endif
% if image_fns:
<div id="images">
% for basename, thumb, original in image_fns:
<div class="imgwrapper">
<div class="img"><a href="${original}"><img src="${thumb}" /></a></div>
${basename}
</div>
% endfor
</div>
% endif
</body>
</html>