X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fview;h=19117b5e060836a5884b4e2977af5d4f72cdf653;hb=52d254200d32b47402461d325c2836c35af99201;hp=75d003f18d74be367fbe750c7c0a0582a12fa7d4;hpb=4c0d8f0266ab4acd371955c3bf3cdc9c080ea1c9;p=maypole.git diff --git a/templates/factory/view b/templates/factory/view index 75d003f..19117b5 100644 --- a/templates/factory/view +++ b/templates/factory/view @@ -12,7 +12,7 @@ C and displays the object's properties in a table. [% INCLUDE header %] [% FOR item = objects %] [% SET string = item.stringify_column %] -

[% item.$string %]

+
[% item.$string %]
[% INCLUDE navbar %] @@ -34,7 +34,7 @@ from the C method:
[% classmetadata.colnames.$col; %] - [% IF col == "url"; # Possibly too much magic. + [% IF col == "url" && item.url; # Possibly too much magic. ' '; item.url; ''; ELSE; maybe_link_view(item.$col); @@ -65,6 +65,7 @@ a list of has-many accessors. Next it calls each of those accessors, and displays the results in a table. #%] +
Back to listing [% view_related(item); %] [%