X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fmacros;h=e142916d6dd304aa7af9c3d4e42194375f16c798;hb=2009ec81c3cc790cbdc42082c459cf57bdccedad;hp=7e3284c3861196d45be137e0e57b1765ef9a40a3;hpb=ca325e68ce3620b52a3c8c9ed437ed79c5d1a744;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);