tabulation converties en espaces.
[Plinn.git] / skins / generic / main_template_ajax.pt
1 <fragments metal:define-macro="master">
2 <metal:block use-macro="here/main_template_macros/macros/global_defines"/>
3 <tal:block define="global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')"/>
4
5 <fragment id="mainCell"><span tal:replace="structure string:&lt;![CDATA[" />
6 <base tal:omit-tag="" metal:define-slot="base" />
7 <link metal:define-slot="css_slot" tal:replace="nothing" />
8
9 <div id="Object_URL" tal:content="here/absolute_url" style="display:none"></div>
10 <script type="text/javascript" metal:define-slot="javascript_head_slot" tal:replace="nothing"></script>
11 <div id="DesktopStatusBar" tal:condition="request/portal_status_message|nothing">
12 <img src="info.gif" alt="Information" tal:attributes="src here/info.gif/absolute_url" i18n:attributes="alt" />
13 <span tal:content="request/portal_status_message" i18n:translate="">Status message.</span>
14 </div>
15 <div metal:define-slot="main_no_tabs" tal:omit-tag="">
16 <div tal:condition="specialCtxHeader" tal:content="structure specialCtxHeader">special context header</div>
17 <div id="ContentTabs" tal:condition="not:specialCtxHeader">
18 <div class="tabs" metal:use-macro="here/tabs/macros/tabs">Content tabs</div>
19 <div metal:use-macro="here/tabs/macros/additional_tabs">Additional tabs</div>
20 </div>
21 <div id="ForematterCell">
22 <div class="header">
23 <div tal:omit-tag="" metal:define-slot="header">
24 <h1 id="DesktopTitle">
25 <span tal:replace="here/title_or_id">Page Title</span>
26 </h1>
27 <div id="DesktopDescription" tal:content="structure here/Description">
28 Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
29 </div>
30 </div>
31 </div>
32
33 <div id="Desktop">
34 <div metal:define-slot="main">
35 <h2>Section Header</h2>
36 <p>The content of the object is <a href=".">rendered</a>
37 hre. Lorem ipsum dolorem. Nihil obstat imprimatur. Semper ubi sub ubi.
38 Non illegitimi carborundum. In vino veritas. E pluribus unam.
39 </p>
40 </div>
41 </div>
42 <div tal:condition="not:isAnon" tal:omit-tag="">
43 <div id="ContentByLine" metal:use-macro="here/content_byline/macros/byline">
44 Content by me
45 </div>
46 </div>
47 <div metal:define-slot="footer" tal:replace="nothing">footer slot</div>
48 </div>
49 </div>
50 <span tal:replace="structure string:]]>" /></fragment>
51
52 <tal:block define="browserObjectUrl python:request.get('_browserObjectUrl');
53 fragments python:(browserObjectUrl and browserObjectUrl != here.absolute_url()) and ['Breadcrumbs', 'rightCell'] or request.get('syncFragments', []);"
54 condition="fragments">
55 <tal:loop define="main_macros here/main_template_macros/macros"
56 repeat="macroName fragments">
57 <fragment tal:attributes="id macroName"><span tal:replace="structure string:&lt;![CDATA[" />
58 <metal:block metal:use-macro="python:main_macros[macroName]" />
59 <span tal:replace="structure string:]]>" /></fragment>
60 </tal:loop>
61 </tal:block>
62
63 </fragments>