[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - template.pt:1.6

Jim Fulton jim@zope.com
Mon, 30 Dec 2002 13:22:34 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv26895

Modified Files:
	template.pt 
Log Message:
Changed the metadata box to look for a MetaDataBox view and disappear
if one can't be found.


=== Zope3/src/zope/app/browser/skins/rotterdam/template.pt 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/template.pt:1.5	Mon Dec 30 10:54:25 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/template.pt	Mon Dec 30 13:22:34 2002
@@ -208,19 +208,21 @@
 
     <div id="context_information">
 
-    <div id="helpers">
+      <div id="helpers">
 
-      <div class="box" id="itemHelp" tal:condition="pagetip|nothing">
+        <div class="box" id="itemHelp" tal:condition="pagetip|nothing">
 
-        <h3>Tip</h3>
+          <h3>Tip</h3>
 
-        <div class="body">
+          <div class="body">
 
-          <div class="content odd">
+            <div class="content odd">
 
-            <metal:block define-slot="pagetip" tal:replace="pagetip">
-              A short tip goes here              
-            </metal:block>
+              <metal:block define-slot="pagetip" tal:replace="pagetip">
+                A short tip goes here              
+              </metal:block>
+
+            </div>
 
           </div>
 
@@ -228,30 +230,31 @@
 
       </div>
 
-    </div>
 
+      <div id="inspectors">
 
-    <div id="inspectors">
+        <div class="box" id="metadata" 
+             tal:define="view context/@@MetaDataBox|nothing"
+             tal:condition="view"
+             >
 
-      <div class="box" id="metadata">
+          <h3>Metadata</h3>
 
-        <h3>Metadata</h3>
+          <div class="body" tal:content="structure view">
 
-        <div class="body">
+            <div class="content odd">
+              testing testing
+            </div>
 
-          <div class="content odd">
-            testing testing
-          </div>
+            <div class="content even">
+              and some more
+            </div>
 
-          <div class="content even">
-            and some more
           </div>
 
         </div>
 
       </div>
-
-    </div>
 
     </div>