I've made a small change to table.vm used by <torque-doc>. Instead of
just colouring the background of foreign keys, I've added a link to the
referenced table. It's not very elegant but it seems to get the job
done.
This applies to the 'templates' project:
src/templates/doc/html/table.vm.
Thanks,
Hilco
Index: src/templates/doc/html/table.vm
===================================================================
--- src/templates/doc/html/table.vm (revision 332189)
+++ src/templates/doc/html/table.vm (working copy)
@@ -29,7 +29,11 @@
</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)
+#foreach ($fk in $table.ForeignKeys)
+#if ($fk.LocalColumns.get(0) == $col.Name)<a href="#$fk.ForeignTableName">$col.Name</a>#end
+#end
+#else$col.Name#end</td>
<td class="normalFont">$col.Type</td>
<td class="normalFont">#if ($col.printSize() && $col.printSize().length() > 0) $col.printSize() #else #end</td>
<td class="normalFont">#if ($col.DefaultValue) $col.DefaultValue#else #end</td>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]