Refactoring, commentaires.
[Plinn.git] / skins / photo_theme / member_albums_template.pt
1 <html metal:use-macro="here/main_template/macros/master"
2 xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
3 <head>
4 <title>Member albums' template</title>
5 <metal:block metal:fill-slot="javascript_head_slot">
6
7 </metal:block>
8 </head>
9 <body>
10 <div metal:fill-slot="main_no_tabs" tal:omit-tag=""
11 tal:define="Batch python:modules['Products.Plinn'].Batch;
12 b_start python:request.get('b_start',0);
13 batch python:Batch(options['results'], 16, b_start, orphan=1, quantumleap=1);"
14 i18n:domain="portfolio">
15 <h2 i18n:translate="">My albums</h2>
16 <div tal:condition="not:batch" i18n:translate="">You don't have any album yet.</div>
17 <div tal:condition="batch">
18 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
19 <div class="portfolio_lightbox">
20 <a tal:repeat="brain batch"
21 tal:attributes="href brain/getURL">
22 <span tal:define="portfolio brain/getObject;
23 sphoto portfolio/samplePhoto" tal:omit-tag="">
24 <span tal:condition="sphoto" tal:omit-tag="">
25 <img tal:attributes="src sphoto/src;
26 alt sphoto/alt;
27 height sphoto/height;
28 width sphoto/width;"/>
29 </span>
30 <span tal:condition="not:sphoto" tal:omit-tag="">
31 <img tal:attributes="src here/empty_portfolio.gif/absolute_url;
32 alt portfolio/title_or_id"/>
33 </span>
34 <h3 tal:content="portfolio/title_or_id">Portfolio title or id</h3>
35 <div tal:content="portfolio/Description"></div>
36 </span>
37 </a>
38 </div>
39 </div>
40 </div>
41 </body>
42 </html>