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

Revision 521, 1.9 KB checked in by vahur, 13 years ago (diff)

closes #549 spent 10m
added byline

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