X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fmacros;h=e142916d6dd304aa7af9c3d4e42194375f16c798;hb=f7e68bd92b9b43454454f9715406b7e0f9b956e1;hp=7e3284c3861196d45be137e0e57b1765ef9a40a3;hpb=ec6158e614bb29d4e2a11d8cd1b7565816039074;p=maypole.git diff --git a/templates/factory/macros b/templates/factory/macros index 7e3284c..e142916 100644 --- a/templates/factory/macros +++ b/templates/factory/macros @@ -31,6 +31,7 @@ command for that object. Otherwise, it just displays the data. #%] [% + MACRO maybe_link_view(object) BLOCK; IF object.moniker; # It's an object, i.e. a has-a link(object.moniker, "view", object.id, object); @@ -57,7 +58,7 @@ for some. ""; IF col == "url"; " "; item.url; ""; - ELSIF col == "name"; + ELSIF col == item.stringify_column; maybe_link_view(item); ELSE; maybe_link_view(item.$col);