Here is the diff for a slight alteration to datagrid.kid that makes the
first column data a link to the full data description. I'm new to kid
so I'd like to know if there is a better way to do what I've done. I
was looking for if/else, but it appears there is no else. Also I tried
a replace with the span, but couldn't get that to work.
Randall
Index: turbogears/fastdata/templates/datagrid.kid
===================================================================
--- turbogears/fastdata/templates/datagrid.kid (revision 694)
+++ turbogears/fastdata/templates/datagrid.kid (working copy)
@@ -23,7 +23,10 @@
</a>
</td>
<td py:for="col in columns">
- ${col.get_field(row)}
+ <a py:if="col == columns[0]" href="${std.url(str(row.id))}">
+ ${col.get_field(row)}
+ </a>
+ <span py:if="col != columns[0]">${col.get_field(row)}</span>
</td>
</tr>
</table>