Autre approche pour la surcharge : on surcharge « catalog_object », une méthode plus...
[Plinn.git] / skins / generic / main_template_ajax.pt
index f424b43..3d407cb 100644 (file)
@@ -1,23 +1,23 @@
 <fragments metal:define-macro="master">
-       <metal:block use-macro="here/main_template_macros/macros/global_defines"/>
-       <tal:block define="global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')"/>
-
+  <metal:block use-macro="here/main_template_macros/macros/global_defines"/>
+  <tal:block define="global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')"/>
+  <base metal:define-slot="base" tal:attributes="href python: here.absolute_url() + '/'"/>
 <fragment id="mainCell"><span tal:replace="structure string:&lt;![CDATA[" />
-  <base tal:omit-tag="" metal:define-slot="base" />
   <link metal:define-slot="css_slot" tal:replace="nothing" />
 
-       <div id="Object_URL" tal:content="here/absolute_url" style="display:none"></div>
+  <div id="Object_URL" tal:content="here/absolute_url" style="display:none"></div>
   <script type="text/javascript" metal:define-slot="javascript_head_slot" tal:replace="nothing"></script>
   <div id="DesktopStatusBar" tal:condition="request/portal_status_message|nothing">
     <img src="info.gif" alt="Information" tal:attributes="src here/info.gif/absolute_url" i18n:attributes="alt" />
     <span tal:content="request/portal_status_message" i18n:translate="">Status message.</span>
   </div>
+  <div metal:define-slot="body" tal:omit-tag="">
   <div metal:define-slot="main_no_tabs" tal:omit-tag="">
     <div tal:condition="specialCtxHeader" tal:content="structure specialCtxHeader">special context header</div>
-               <div id="ContentTabs" tal:condition="not:specialCtxHeader">
-                       <div class="tabs" metal:use-macro="here/tabs/macros/tabs">Content tabs</div>
-                       <div metal:use-macro="here/tabs/macros/additional_tabs">Additional tabs</div>
-               </div>
+    <div id="ContentTabs" tal:condition="not:specialCtxHeader">
+      <div class="tabs" metal:use-macro="here/tabs/macros/tabs">Content tabs</div>
+      <div metal:use-macro="here/tabs/macros/additional_tabs">Additional tabs</div>
+    </div>
     <div id="ForematterCell">
       <div class="header">
         <div tal:omit-tag="" metal:define-slot="header">
       <div metal:define-slot="footer" tal:replace="nothing">footer slot</div>
     </div>
   </div>
+  </div>
 <span tal:replace="structure string:]]>" /></fragment>
 
 <tal:block define="browserObjectUrl python:request.get('_browserObjectUrl');
-                                                                        fragments python:(browserObjectUrl and browserObjectUrl != here.absolute_url()) and ['Breadcrumbs', 'rightCell'] or request.get('syncFragments', []);"
-                                        condition="fragments">
-       <tal:loop define="main_macros here/main_template_macros/macros"
-                                               repeat="macroName fragments">
-               <fragment tal:attributes="id macroName"><span tal:replace="structure string:&lt;![CDATA[" />
-                       <metal:block metal:use-macro="python:main_macros[macroName]" />
-               <span tal:replace="structure string:]]>" /></fragment>
-       </tal:loop>
+                   fragments python:(browserObjectUrl and browserObjectUrl != here.absolute_url()) and ['Breadcrumbs', 'rightCell'] or request.get('syncFragments', []);"
+           condition="fragments">
+  <tal:loop define="main_macros here/main_template_macros/macros"
+            repeat="macroName fragments">
+    <fragment tal:attributes="id macroName"><span tal:replace="structure string:&lt;![CDATA[" />
+      <metal:block metal:use-macro="python:main_macros[macroName]" />
+    <span tal:replace="structure string:]]>" /></fragment>
+  </tal:loop>
 </tal:block>
 
 </fragments>
\ No newline at end of file