[Zope3-checkins] CVS: Zope3/src/zope/products/statictree/example - example1.pt:1.3

Philipp von Weitershausen philikon at philikon.de
Sun Feb 15 15:10:16 EST 2004


Update of /cvs-repository/Zope3/src/zope/products/statictree/example
In directory cvs.zope.org:/tmp/cvs-serv27224/example

Modified Files:
	example1.pt 
Log Message:
* Get rid of empty.png. Browser should support fixed cell sizes
* Do not show 'L' and 'T' as alt of the images.
* Rearrange some comments


=== Zope3/src/zope/products/statictree/example/example1.pt 1.2 => 1.3 ===
--- Zope3/src/zope/products/statictree/example/example1.pt:1.2	Sun Feb 15 13:59:56 2004
+++ Zope3/src/zope/products/statictree/example/example1.pt	Sun Feb 15 15:09:46 2004
@@ -17,8 +17,8 @@
 without any license restrictions, but please give credit where credit
 is due.
 
-Tip: Change to @@static_cookie_tree below to @@folder_cookie_tree for
-a tree with only folders.
+Tip: Change the 'context/@@static_cookie_tree' expression below to
+'context/@@folder_cookie_tree' for a tree with only folders.
 -->
 
 <div metal:fill-slot="body">
@@ -47,8 +47,6 @@
 
   <!-- generate the lines that will point to the next node in the level -->
   <td style="width:16px" tal:repeat="state nodeInfo/row-state">
-    <img tal:attributes="src context/++resource++tree_images/empty.png"
-         tal:condition="not:state" alt="" border="0" />
     <img tal:attributes="src context/++resource++tree_images/vline.png"
          tal:condition="state" alt="|" border="0" />
   </td>
@@ -58,15 +56,17 @@
     <a href=""
        tal:attributes="href string:?tree-state=${nodeInfo/tree-state}"
        tal:condition="node/hasChildren">
+
+      <!-- If the node is the last node of the level, then we need to use
+           different plus and minus that do not have a line going off 
+           downward -->
       <tal:block condition="not:nodeInfo/last-level-node">
         <img tal:attributes="src context/++resource++tree_images/plus_vline.png"
              tal:condition="not:node/expanded" alt="+" border="0" />
         <img tal:attributes="src context/++resource++tree_images/minus_vline.png"
              tal:condition="node/expanded" alt="-" border="0" />
       </tal:block>
-      <!-- If the node is the last node of the level, then we need to use
-           different plus and minus that do not have a line going off 
-           downward -->
+
       <tal:block condition="nodeInfo/last-level-node">
         <img tal:attributes="src context/++resource++tree_images/plus.png"
              tal:condition="not:node/expanded" alt="+" border="0" />
@@ -75,12 +75,14 @@
       </tal:block>
     </a>
 
-    <!-- this node has no children, so either display a T or L as lines --> 
+    <!-- this node has no children, so either display a T or L as
+         lines, depending on whether we're the last node in this level
+         or not -->
     <tal:block condition="not:node/hasChildren">
       <img tal:attributes="src context/++resource++tree_images/tline.png"
-           tal:condition="not:nodeInfo/last-level-node" alt="T" border="0" />
+           tal:condition="not:nodeInfo/last-level-node" alt="" border="0" />
       <img tal:attributes="src context/++resource++tree_images/lline.png"
-           tal:condition="nodeInfo/last-level-node" alt="L" border="0" />
+           tal:condition="nodeInfo/last-level-node" alt="" border="0" />
     </tal:block>
   </td>
 




More information about the Zope3-Checkins mailing list