source: trunk/skins/lemill/piece_view.pt @ 469

Revision 469, 2.6 KB checked in by tarmo, 13 years ago (diff)

All strings in ZPTs are now i18n'd. Refs #524, spent 90m,
30m remaining. Need to fix i18n:domains still.

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="lemill">
5<body>
6
7<metal:main fill-slot="main">
8        <!-- header, H1 with title in it -->
9        <metal:header define-macro="header">
10        <h1 tal:content="object_title" class="documentFirstHeading">
11            PLACEHOLDER
12        </h1>
13        </metal:header>
14       
15        <!-- body macro where all the fields are -->
16        <metal:body define-macro="body">
17               
18    <tal:block tal:condition="context/isImage">
19    <img src="" alt=""
20        class="materialViewFirstImage"
21        tal:attributes="src python:context.absolute_url()+'/file/image_large';
22                alt context/Title;
23                title context/Title;" />
24    <p class="imageCaption" tal:content="context/getDescription">PLACEHOLDER</p>
25    <p><a i18n:translate="link_download_hires" tal:attributes="href python:context.absolute_url()+'/file'">Download high resolution version (<tal:block i18n:name="size" tal:content="python:context.file.get_size()/1024">500</tal:block> kB)</a></p>
26    </tal:block>
27    <tal:block tal:condition="not:context/isImage">
28    <p><tal:block i18n:translate="label_download">Download:</tal:block> <metal:fieldMacro use-macro="python:here.widget('file',mode='view')"/></p>
29    <p><tal:block i18n:translate="label_description">Description:</tal:block> <tal:block tal:content="context/getDescription">PLACEHOLDER</tal:block></p>
30    </tal:block>
31
32    <p><tal:block i18n:translate="label_tags">Tags:</tal:block>
33    <metal:fieldMacro use-macro="python:here.widget('tags',mode='view')"/>
34    </p>
35    <p tal:condition="not:context/isImage"><tal:block i18n:translate="label_language">Language:</tal:block>
36    <metal:fieldMacro use-macro="python:here.widget('language',mode='view')"/>
37    </p>
38    <p>
39    <metal:fieldMacro use-macro="python:here.widget('rights',mode='view')"/>
40    </p>
41
42        <div metal:use-macro="here/document_relateditems/macros/relatedItems">
43            show related items if they exist
44        </div>
45
46        <div metal:use-macro="here/wcag/macros/wcag_logo">
47            Show WCAG logo
48        </div>
49
50        </metal:body>
51       
52        <!-- folderlisting that shows sub-objects if there are any -->
53        <metal:folderlisting define-macro="folderlisting">
54               
55               
56        </metal:folderlisting>
57       
58        <!-- footer, by line created date etc. -->
59        <metal:footer define-macro="footer">
60        <div metal:use-macro="here/document_byline/macros/byline">
61            Get the byline - contains details about author and modification date.
62        </div>
63        </metal:footer>
64       
65</metal:main>
66</body>
67</html>
Note: See TracBrowser for help on using the repository browser.