]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/macros
Maypole::CLI and the beginnings of a test suite.
[maypole.git] / templates / factory / macros
index 7e3284c3861196d45be137e0e57b1765ef9a40a3..e142916d6dd304aa7af9c3d4e42194375f16c798 100644 (file)
@@ -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.
         "<td>";
         IF col == "url";
             "<A HREF="; item.url; "> "; item.url; "</A>";
-        ELSIF col == "name";
+        ELSIF col == item.stringify_column;
             maybe_link_view(item);
         ELSE;
             maybe_link_view(item.$col);