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

Revision 516, 2.6 KB checked in by hans, 13 years ago (diff)

Moved byline to the top

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        <div metal:use-macro="here/document_byline/macros/byline">
19            Get the byline - contains details about author and modification date.
20        </div>
21               
22    <tal:block tal:condition="context/isImage">
23    <img src="" alt=""
24        tal:attributes="src python:context.absolute_url()+'/file/image_large';
25                alt context/Title;
26                title context/Title;" />
27    <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>
28    <p tal:content="context/getDescription">PLACEHOLDER</p>
29    </tal:block>
30    <tal:block tal:condition="not:context/isImage">
31    <p><tal:block i18n:translate="label_download">Download</tal:block>: <metal:fieldMacro use-macro="python:here.widget('file',mode='view')"/></p>
32    <p><tal:block i18n:domain="plone" i18n:translate="label_description">Description</tal:block>: <tal:block tal:content="context/getDescription">PLACEHOLDER</tal:block></p>
33    </tal:block>
34
35    <p><tal:block i18n:translate="label_tags">Tags</tal:block>:
36    <metal:fieldMacro use-macro="python:here.widget('tags',mode='view')"/>
37    </p>
38    <p tal:condition="not:context/isImage"><tal:block i18n:domain="plone" i18n:translate="label_language">Language</tal:block>:
39    <metal:fieldMacro use-macro="python:here.widget('language',mode='view')"/>
40    </p>
41    <p>
42    <metal:fieldMacro use-macro="python:here.widget('rights',mode='view')"/>
43    </p>
44
45        <div metal:use-macro="here/document_relateditems/macros/relatedItems">
46            show related items if they exist
47        </div>
48
49        <div metal:use-macro="here/wcag/macros/wcag_logo">
50            Show WCAG logo
51        </div>
52
53        </metal:body>
54       
55        <!-- folderlisting that shows sub-objects if there are any -->
56        <metal:folderlisting define-macro="folderlisting">
57               
58               
59        </metal:folderlisting>
60       
61        <!-- footer, by line created date etc. -->
62        <metal:footer define-macro="footer">
63        </metal:footer>
64       
65</metal:main>
66</body>
67</html>
Note: See TracBrowser for help on using the repository browser.