summaryrefslogtreecommitdiff
path: root/templates/pages/screenshots.mako
blob: 6e85b2aca05637127eb1a32b87e43a4121b815e0 (plain)
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
<%!
    title = "Screenshots"
%>
<%inherit file="/page.mako" />

<%def name="style()">
    ${parent.style()}
    
    <!-- highslide stuff -->
    <script src=${"/static/js/highslide.js" | url} type="text/javascript"></script>
    <script type="text/javascript">
        hs.graphicsDir = ${"/static/images/highslide/" | url};
        hs.align = 'center';
        hs.showCredits = false;
        hs.captionEval = 'this.thumb.alt';
        hs.outlineType = 'outer-glow';
        hs.wrapperClassName = 'outer-glow';
        hs.fullExpandOpacity = 0.5;

    </script>

    <link href=${"/static/css/highslide.css" | url} rel="stylesheet" type="text/css" />
</%def>

<p>
    % for f,t,d in h.getImages("static/images/screens/", "static/images/tmp/", (150,150)):
        <a href=${f} class="highslide" rel="highslide">
            <img src=${t} alt="${d if d else 'Portato screenie'}" title="Click to enlarge" />
        </a>
        ##     % if d is not None:
        ##  <div class="highslide-caption">${d}</div>
        ##% endif
    % endfor
</a>