]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/macros
more small changes
[maypole.git] / templates / factory / macros
index 8743afc4d1fe53b7e7e9d83abda195288a365395..2af0a6ceb2eef18778330590fa3fcf3f2fc494d4 100644 (file)
@@ -59,7 +59,7 @@ for some.
         "<td>";
         IF col == "url" AND item.url;
             '<a href="'; item.url; '"> '; item.url; '</a>';
-        ELSIF col == item.stringify_column;
+        ELSIF col == classmetadata.stringifycolumn;
             maybe_link_view(item);
         ELSE;
             accessor = item.accessor_name(col);
@@ -128,7 +128,7 @@ This takes an object and and displays its properties in a table.
 
 #%]
 [% 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">