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

Revision 344, 1.8 KB checked in by tarmo, 13 years ago (diff)

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

  • Property svn:eol-style set to native
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        <!-- header, H1 with title in it -->
9        <metal:header define-macro="header">
10        <h1 tal:content="object_title" class="documentFirstHeading">
11            Title or id
12        </h1>
13        </metal:header>
14       
15        <!-- body macro where all the fields are -->
16        <metal:body define-macro="body">
17
18        <p class="documentDescription"
19           tal:content="here/Description"
20           tal:condition="here/Description">
21            Description
22        </p>
23   
24        <metal:def define-macro="refs"
25        tal:define="template_name context/getTemplateId">
26
27    <tal:block tal:condition="not:template_name">
28          <p><a href="#" tal:attributes="href string:$here_url/file">Download</a></p>
29    </tal:block>
30
31    <tal:block tal:condition="template_name">
32      <tal:define define="macro python:path('here/%s/macros/body' % context.getViewTemplateName());">
33        <metal:call metal:use-macro="macro"/>
34      </tal:define>
35    </tal:block>
36
37        <div metal:use-macro="here/document_relateditems/macros/relatedItems">
38            show related items if they exist
39        </div>
40
41        </metal:def>
42        </metal:body>
43       
44        <!-- folderlisting that shows sub-objects if there are any -->
45        <metal:folderlisting define-macro="folderlisting">
46               
47               
48        </metal:folderlisting>
49       
50        <!-- footer, by line created date etc. -->
51        <metal:footer define-macro="footer">
52        <div metal:use-macro="here/document_byline/macros/byline">
53            Get the byline - contains details about author and modification date.
54        </div>
55        </metal:footer>
56       
57</metal:main>
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.