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

Stephan Richter srichter@cosmos.phy.tufts.edu
Tue, 1 Jul 2003 21:28:29 -0400


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

Modified Files:
	template.pt 
Log Message:
Fixed OnlineHelp after it was broken from a sprint. Context-aware help 
works again. I also took the oppurtunity to clean up the ZCML directives.


=== Zope3/src/zope/app/browser/skins/rotterdam/template.pt 1.32 => 1.33 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/template.pt:1.32	Mon Jun 30 13:10:57 2003
+++ Zope3/src/zope/app/browser/skins/rotterdam/template.pt	Tue Jul  1 21:27:58 2003
@@ -80,7 +80,7 @@
       <!-- Tree of the help topics that appears on the help namespace -->
       <div class="box" id="help"
            tal:condition="not:python:request.getURL().find('++help++')==-1">
-        <h4>Online Help</h4>              
+        <h4>Online Help - TOC</h4>              
         <div class="body">
           <div tal:content="structure view/getTopicTree|nothing"
                tal:omit-tag="">content of topicTree</div>
@@ -179,11 +179,30 @@
               </div>
             </div>
 
+	    <!-- Do not remove! This box will show the contextually related 
+                 help topics! -->
+            <div class="box" id="help"
+                tal:define="results view/@@find_help_topics|nothing"
+                tal:condition="results">
+              <h4>Online Help</h4>
+              <div class="body">
+                <a href="#"
+                    tal:repeat="entry results"
+                            tal:attributes="href entry/url">
+                  <div tal:define="oddrow repeat/entry/odd"
+                      tal:attributes="class python:oddrow and 'even' or 'odd'"
+                      tal:content="entry/topic/title">Topic Title
+                  </div>
+                </a>
+              </div>
+            </div>
+
+
             <div class="spacer">
               &nbsp;
             </div>
 
-                </div>
+          </div>
 
 <!--
           <div id="inspectors">