"<td>";
IF col == "url" AND item.url;
'<a href="'; item.url; '"> '; item.url; '</a>';
- ELSIF col == item.stringify_column;
+ ELSIF col == classmetadata.stringify_column;
maybe_link_view(item);
ELSE;
- maybe_link_view(item.$col);
+ accessor = item.accessor_name(col);
+ maybe_link_view(item.$accessor);
END;
"</td>";
END;
#%]
[% MACRO view_item(item) BLOCK; %]
- [% SET string = item.stringify_column %]
+ [% SET string = classmetadata.stringifycolumn %]
<div id="title"> [% item.$string %]</div>
[% INCLUDE navbar %]
<table class="view">