X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fview;h=19117b5e060836a5884b4e2977af5d4f72cdf653;hb=52d254200d32b47402461d325c2836c35af99201;hp=6736da61c4f9fc825bcda2f9feeb6740a7171a46;hpb=d77cc42a2fd0ae059128043822ef127199e55ed2;p=maypole.git diff --git a/templates/factory/view b/templates/factory/view index 6736da6..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,8 +34,8 @@ from the C method:
[% classmetadata.colnames.$col; %] - [% IF col == "url"; # Possibly too much magic. - " "; item.url; ""; + [% IF col == "url" && item.url; # Possibly too much magic. + ' '; item.url; ''; ELSE; maybe_link_view(item.$col); END; %] @@ -65,9 +65,12 @@ 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); %] + [% - view_related(item); button(item, "edit"); button(item, "delete"); %] [% END; %] +[% INCLUDE footer %]