On stagne pour l'instant : l'indexation par l'automate de tuilage des images est...
[Portfolio.git] / skins / photo_view_ajax_template.pt
1 <?xml version="1.0" encoding="UTF-8"?>
2 <fragments i18n:domain="portfolio"
3 tal:define="imgId here/getId"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 xmlns:tal="http://xml.zope.org/namespaces/tal">
6 <imageattributes tal:attributes="alt here/Title;
7 backToContextUrl options/backToContextUrl;
8 lastBcUrl options/lastBcUrl;
9 img_id imgId;
10 buyable options/buyable"/>
11 <fragment id="image_metadata"><span tal:replace="structure string:&lt;![CDATA[" />
12 <span tal:define="title here/Title" tal:condition="title" tal:omit-tag="">
13 <span class="photographer" tal:define="creator here/Creator" tal:content="python:'%s :' % creator" tal:condition="creator">Benoît PIN</span>
14 <span class="title_summary" tal:content="title"></span>
15 </span>
16 <div class="description" tal:content="here/Description"></div>
17 <div tal:define="keywords here/Subject" tal:condition="keywords">
18 <h4 i18n:translate="">Keywords</h4>
19 <ul class="keywords"
20 tal:define="portal_url here/portal_url;
21 mq nocall:modules/ZTUtils/make_query;
22 kwurl python:lambda k: '%s/search?%s' % (portal_url, mq(Subject=k, portal_type=['Photo']))">
23 <li tal:repeat="k keywords"><a tal:content="k" tal:attributes="href python:kwurl(k)">bla</a></li>
24 </ul>
25 </div>
26 <div><span i18n:translate="" tal:omit-tag="">reference:</span> <span tal:replace="imgId">bidule.jpg</span></div>
27 <div tal:define="rights here/Rights"
28 tal:content="python:rights.startswith('©') and rights or '© %s' % rights"></div>
29 <div tal:define="ViewRawImage python:modules['Products.Portfolio.permissions'].ViewRawImage;
30 mtool here/portal_membership"
31 tal:condition="python:mtool.checkPermission(ViewRawImage, here)" style="font-weight:bold; margin-top:1em"
32 i18n:domain="portfolio">
33 <a tal:attributes="href string:${here/absolute_url}/photo_download" i18n:translate="">download picture</a>
34 </div>
35
36 <span tal:replace="structure string:]]>" /></fragment>
37 <fragment id="BC_Object_URL" tal:content="options/lastBcUrl"></fragment>
38 </fragments>