[CMF-checkins] SVN: CMF/trunk/CMFDefault/ - refactored and fixed slots

Yvo Schubbe y.2006_ at wcm-solutions.de
Sat Mar 25 10:57:21 EST 2006


Log message for revision 66162:
  - refactored and fixed slots

Changed:
  U   CMF/trunk/CMFDefault/browser/templates/document.pt
  U   CMF/trunk/CMFDefault/browser/templates/document_edit.pt
  U   CMF/trunk/CMFDefault/browser/templates/folder.pt
  U   CMF/trunk/CMFDefault/browser/templates/folder_contents.pt
  U   CMF/trunk/CMFDefault/browser/templates/link.pt
  U   CMF/trunk/CMFDefault/browser/templates/link_edit.pt
  U   CMF/trunk/CMFDefault/browser/templates/metadata_edit.pt
  U   CMF/trunk/CMFDefault/browser/templates/metadata_minimal_edit.pt
  U   CMF/trunk/CMFDefault/browser/templates/newsitem_edit.pt
  U   CMF/trunk/CMFDefault/skin/five_template.pt
  U   CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt
  U   CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css

-=-
Modified: CMF/trunk/CMFDefault/browser/templates/document.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/document.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/document.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -17,7 +17,7 @@
 <metal:macro metal:use-macro="context/content_byline/macros/byline" />
 </metal:slot>
 
-<metal:slot metal:fill-slot="body">
+<metal:slot metal:fill-slot="main">
 <tal:span tal:replace="structure view/text">Cooked Body</tal:span>
 
 <div class="Discussion" tal:condition="context/viewThreadsAtBottom|nothing">

Modified: CMF/trunk/CMFDefault/browser/templates/document_edit.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/document_edit.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/document_edit.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <form action="document_edit_form" method="post" enctype="multipart/form-data"

Modified: CMF/trunk/CMFDefault/browser/templates/folder.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/folder.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/folder.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -13,7 +13,7 @@
  header goes here.</div></tal:case
 ></metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
   <div id="content_well"
        style="float: left; top: 0; width: 78%;">
     <div tal:condition="not: view/has_local">

Modified: CMF/trunk/CMFDefault/browser/templates/folder_contents.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/folder_contents.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/folder_contents.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <p tal:define="up_info view/up_info" tal:condition="up_info"

Modified: CMF/trunk/CMFDefault/browser/templates/link.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/link.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/link.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -17,7 +17,7 @@
 <metal:macro metal:use-macro="context/content_byline/macros/byline" />
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <p i18n:translate="">Link:
  <a href="" tal:attributes="href view/url" tal:content="view/url"
     i18n:name="link">http://www.zope.org</a></p>

Modified: CMF/trunk/CMFDefault/browser/templates/link_edit.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/link_edit.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/link_edit.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <form action="link_edit_form" method="post"

Modified: CMF/trunk/CMFDefault/browser/templates/metadata_edit.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/metadata_edit.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/metadata_edit.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <form action="metadata_edit_form" method="post"

Modified: CMF/trunk/CMFDefault/browser/templates/metadata_minimal_edit.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/metadata_minimal_edit.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/metadata_minimal_edit.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <form action="folder_edit_form" method="post"

Modified: CMF/trunk/CMFDefault/browser/templates/newsitem_edit.pt
===================================================================
--- CMF/trunk/CMFDefault/browser/templates/newsitem_edit.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/browser/templates/newsitem_edit.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -6,7 +6,7 @@
     tal:content="view/title" i18n:name="obj_title">Title</tal:span></h1>
 </metal:slot>
 
-<metal:slot metal:fill-slot="body" i18n:domain="cmf_default">
+<metal:slot metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
 <form action="newsitem_edit_form" method="post"

Modified: CMF/trunk/CMFDefault/skin/five_template.pt
===================================================================
--- CMF/trunk/CMFDefault/skin/five_template.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/skin/five_template.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -1,15 +1,15 @@
-<metal:block define-macro="page"><metal:block use-macro="here/main_template/macros/master">
- <metal:block fill-slot="base">
-   <metal:block define-slot="base" />
- </metal:block>
- <metal:block fill-slot="header">
-   <metal:block define-slot="header" />
- </metal:block>
- <metal:block fill-slot="css_slot">
-   <metal:block define-slot="style_slot" />
- </metal:block>
- <metal:block fill-slot="main">
-   <metal:block define-slot="body" />
- </metal:block>
-</metal:block>
-</metal:block>
+<metal:macro metal:define-macro="page"
+><html metal:use-macro="context/main_template/macros/master">
+<head>
+<metal:slot metal:fill-slot="base"
+><metal:slot metal:define-slot="base" /></metal:slot>
+<metal:slot metal:fill-slot="style_slot"
+><metal:slot metal:define-slot="style_slot" /></metal:slot>
+</head>
+<body>
+<metal:slot metal:fill-slot="body"
+><metal:slot metal:define-slot="body"
+><metal:slot metal:define-slot="header" />
+ <metal:slot metal:define-slot="main" /></metal:slot></metal:slot>
+</body>
+</html></metal:macro>

Modified: CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt	2006-03-25 15:57:20 UTC (rev 66162)
@@ -256,8 +256,9 @@
  <td width="16px">&nbsp;</td>
 
  <td id="ForematterCell">
+  <div id="Desktop">
 
-  <p id="Breadcrumbs" style="padding-top: 5px">
+  <p id="Breadcrumbs">
    <span tal:repeat="bc context/breadcrumbs"
     ><a href="."
         tal:attributes="href bc/url" tal:content="bc/id"
@@ -270,25 +271,10 @@
      tal:content="globals/status_message"
      i18n:translate="">Status message.</p>
 
-<metal:slot metal:define-slot="header">
-<h1 id="DesktopTitle" tal:content="object_title">Page Title</h1>
+<metal:slot metal:define-slot="body"
+><metal:slot metal:define-slot="header" />
+<metal:slot metal:define-slot="main" /></metal:slot>
 
-<div id="DesktopDescription" tal:content="object_description">Description
- of the resource goes here, perhaps even wrapping lines;  this is to make it
- long enough to test.</div>
-</metal:slot>
-<!-- end formatter -->
-
-<div id="Desktop">
-
-<metal:slot metal:define-slot="main">
-<h2>Section Header</h2>
-
-<p>The content of the object is <a href="render">rendered</a> hre. Lorem ipsum
- dolorem. Nihil obstat imprimatur. Semper ubi sub ubi. Non illegitimi
- carborundum.  In vino veritas.  E pluribus unam.</p>
-</metal:slot>
-
  <div id="Permalink"
       tal:define="url context/get_permalink | nothing"
       tal:condition="url">
@@ -298,9 +284,7 @@
   </a>
  </div>
 
- <!-- end Desktop -->
- </div>
-
+  </div>
  </td>
  </tr>
  </table>

Modified: CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css	2006-03-25 15:57:09 UTC (rev 66161)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css	2006-03-25 15:57:20 UTC (rev 66162)
@@ -209,8 +209,7 @@
 }
 
 #Desktop {
-    margin-left: 0px;
-    margin-right: 16px;
+    margin: 16px 16px 16px 0;
 }
 
 #Permalink {



More information about the CMF-checkins mailing list