source: trunk/skins/lemill/template_text_images_view.pt @ 344

Revision 344, 1014 bytes checked in by tarmo, 13 years ago (diff)

Refactored Material view and edit pages.
Something like 400 lines of unneeded ZPT
removed.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5<body>
6
7<metal:main fill-slot="main">
8<metal:body define-macro="body">
9                <img src="" alt=""
10                    class="materialViewFirstImage"
11                    tal:attributes="src python:context.getRefsToImages()[0].absolute_url()+'/image_large';
12                                    title python:context.getRefsToImages()[0].Title();" tal:on-error="string:"/>
13                <tal:imgs repeat="img context/getRefsToImages">
14                <img src="" alt=""
15                        class="materialViewOtherImages"
16            tal:condition="python:not repeat['img'].start"
17                        tal:attributes="src python:img.absolute_url()+'/image_small';
18                        title img/Title;" />
19                </tal:imgs>
20                <div tal:replace="structure context/getBodyText" />
21</metal:body>
22</metal:main>
23
24</body>
25</html>
26
Note: See TracBrowser for help on using the repository browser.