X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2Ftemplates%2Ffactory%2Fmacros;h=a102c736a523dd78677661140fec7d0400892ca3;hb=4a5cef989c825acf0eb66ba6e567fdd8d47c4da4;hp=59d6c925358a9cfa57a27f981a21ed927ab4f339;hpb=99f5d5a04c67379b66b1a1cea4f048d3003d5581;p=maypole.git diff --git a/lib/Maypole/templates/factory/macros b/lib/Maypole/templates/factory/macros index 59d6c92..a102c73 100644 --- a/lib/Maypole/templates/factory/macros +++ b/lib/Maypole/templates/factory/macros @@ -55,7 +55,7 @@ for some. #%] [% MACRO display_line(item) BLOCK; FOR col = classmetadata.list_columns; - NEXT IF col == "id"; + NEXT IF col == "id" OR col == classmetadata.table _ "_id"; ""; IF col == "url" AND item.url; ' '; item.url; ''; @@ -128,7 +128,7 @@ This takes an object and and displays its properties in a table. #%] [% MACRO view_item(item) BLOCK; %] - [% SET string = classmetadata.stringifycolumn %] + [% SET string = classmetadata.stringify_column %]
[% item.$string %]
[% INCLUDE navbar %] @@ -137,7 +137,7 @@ This takes an object and and displays its properties in a table. [% FOR col = classmetadata.columns.list; - NEXT IF col == "id" OR col == string; + NEXT IF col == "id" OR col == string OR col == classmetadata.table _ "_id";; NEXT UNLESS item.$col; %] [%#
[% item.$string %]