X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=templates%2Ffactory%2Fmacros;h=367d74faaeaea8e69bfcab9163754694e03c01f1;hb=271fd90b8a1b9f843853601a75a1334407ff87c4;hp=4a90e1771f4f1ae9e2c60cb20a2ee009dfaca165;hpb=ce6a9545f5fd2fde3490b7172193d31a8ceece2f;p=maypole.git diff --git a/templates/factory/macros b/templates/factory/macros index 4a90e17..367d74f 100644 --- a/templates/factory/macros +++ b/templates/factory/macros @@ -7,7 +7,7 @@ system. =head2 link -This creates an to a command in the Apache::MVC system by catenating the base URL, table, command, and any arguments. #%] @@ -81,9 +81,11 @@ This is a generic button, which performs an action on an object. #%] [% MACRO button(obj, action) BLOCK; %] +[% IF obj.is_public(action) %]
[% END %] +[% END %] [%# =head2 view_related