- [% classmetadata.colnames.$col ||
- col | ucfirst | replace('_',' '); %] |
-
- [% IF col == "url" && item.url; # Possibly too much magic.
- ' '; item.url; '';
- ELSIF item.$col.size > 1; # has_many column
- FOR thing IN item.$col;
- maybe_link_view(thing);", ";
- END;
-
- ELSE;
- maybe_link_view(item.$col);
- END; %]
-[%#
-
-This tests whether or not the returned value is an object, and if so,
-creates a link to a page viewing that object; if not, it just displays
-the text as normal. The object is linked using its stringified name;
-by default this calls the C method, or returns the object's ID
-if there is no C method or other stringification method defined.
-
-=cut
-
-#%]
- |
-
- [% END; %]
-