db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r332759 - in /db/torque: runtime/trunk/xdocs/changes.xml templates/trunk/src/templates/doc/html/table.vm
Date Sat, 12 Nov 2005 11:43:40 GMT
Author: tfischer
Date: Sat Nov 12 03:43:26 2005
New Revision: 332759

URL: http://svn.apache.org/viewcvs?rev=332759&view=rev
Log:
added hyperlinks to foreign keys in the documentation which point to the referenced table.
Thanks for Hilco Wijbenga for an early version of the patch.

Modified:
    db/torque/runtime/trunk/xdocs/changes.xml
    db/torque/templates/trunk/src/templates/doc/html/table.vm

Modified: db/torque/runtime/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/changes.xml?rev=332759&r1=332758&r2=332759&view=diff
==============================================================================
--- db/torque/runtime/trunk/xdocs/changes.xml (original)
+++ db/torque/runtime/trunk/xdocs/changes.xml Sat Nov 12 03:43:26 2005
@@ -26,6 +26,11 @@
   <body>
 
   <release version="3.2-rc3-dev" date="in SVN">
+    <action type="add" dev="tfischer">
+      Added hyperlinks to foreign key in the documentation to point to 
+      the referenced table.
+      Thanks to Hilco Wijbenga for an early version of the patch.
+    </action>
     <action type="fix" dev="seade">
       Corrected serialization of Criteria objects.  While there also fixed
       equals() and added hashCode().

Modified: db/torque/templates/trunk/src/templates/doc/html/table.vm
URL: http://svn.apache.org/viewcvs/db/torque/templates/trunk/src/templates/doc/html/table.vm?rev=332759&r1=332758&r2=332759&view=diff
==============================================================================
--- db/torque/templates/trunk/src/templates/doc/html/table.vm (original)
+++ db/torque/templates/trunk/src/templates/doc/html/table.vm Sat Nov 12 03:43:26 2005
@@ -29,7 +29,9 @@
   </tr>
 #foreach ($col in $table.Columns)
   <tr>
-    <td class="normalFont" id="$table.Name$col.Name">$col.Name</td>
+    <td class="normalFont" id="$table.Name$col.Name">#if ($col.isForeignKey() == true)
+<a href="#$col.RelatedTableName">$col.Name</a>
+#else$col.Name#end</td>
     <td class="normalFont">$col.Type</td>
     <td class="normalFont">#if ($col.printSize() && $col.printSize().length()
> 0) $col.printSize() #else &nbsp;#end</td>
     <td class="normalFont">#if ($col.DefaultValue) $col.DefaultValue#else &nbsp;#end</td>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message