[Checkins] SVN: z3c.formjsdemo/trunk/src/z3c/formjsdemo/browser/index.pt make links on index page relative to context so you can do better virtual hosting.

Paul Carduner paulcarduner at gmail.com
Fri Jan 25 23:11:10 EST 2008


Log message for revision 83236:
  make links on index page relative to context so you can do better virtual hosting.

Changed:
  U   z3c.formjsdemo/trunk/src/z3c/formjsdemo/browser/index.pt

-=-
Modified: z3c.formjsdemo/trunk/src/z3c/formjsdemo/browser/index.pt
===================================================================
--- z3c.formjsdemo/trunk/src/z3c/formjsdemo/browser/index.pt	2008-01-26 04:08:24 UTC (rev 83235)
+++ z3c.formjsdemo/trunk/src/z3c/formjsdemo/browser/index.pt	2008-01-26 04:11:10 UTC (rev 83236)
@@ -1,26 +1,26 @@
 <h1>Z3C formJS demos</h1>
 
-<div class="demo">
+<div class="demo" tal:define="baseurl context/@@absolute_url">
   <h4>Simple Demos</h4>
 
   <div>
-    <a href="/button.html">JavaScript Buttons</a>
+    <a tal:attributes="href string:${baseurl}/button.html">JavaScript Buttons</a>
   </div>
   <div>
-    <a href="/calculator.html">JavaScript Calculator</a>
+    <a tal:attributes="href string:${baseurl}/calculator.html">JavaScript Calculator</a>
   </div>
   <div>
-    <a href="/validator.html">Validator</a>
+    <a tal:attributes="href string:${baseurl}/validator.html">Validator</a>
   </div>
   <div>
-    <a href="/widgetswitch.html">Widget Switching</a>
+    <a tal:attributes="href string:${baseurl}/widgetswitch.html">Widget Switching</a>
   </div>
 
 
   <h4>Advanced Demos</h4>
 
   <div>
-    <a href="/addChatRoom.html">AJAX Chat Room</a>
+    <a tal:attributes="href string:${baseurl}/addChatRoom.html">AJAX Chat Room</a>
     <ul>
       <li tal:repeat="room view/chatRooms">
 	<a tal:attributes="href room/@@absolute_url"
@@ -30,7 +30,7 @@
   </div>
 
   <div>
-    <a href="/addTreeNode.html">Trees</a>
+    <a tal:attributes="href string:${baseurl}/addTreeNode.html">Trees</a>
     <ul>
       <li tal:repeat="node view/treeNodes">
 	<a tal:attributes="href node/@@absolute_url"



More information about the Checkins mailing list