# HG changeset patch # User Thierry Florac # Date 1435668926 -7200 # Node ID 8f74516557428cf358260a45965c4b73101006bb # Parent 6f485755365f0757d5d26fff66cde20cc99d9919 Added optional table property to hide table's body toolbar diff -r 6f485755365f -r 8f7451655742 src/pyams_skin/templates/table.pt --- a/src/pyams_skin/templates/table.pt Wed Jun 17 10:00:35 2015 +0200 +++ b/src/pyams_skin/templates/table.pt Tue Jun 30 14:55:26 2015 +0200 @@ -10,7 +10,9 @@
+ tal:define="hide_toolbar getattr(view, 'hide_body_toolbar', False)" + tal:attributes="id view.id; + class python:'widget-body no-padding {0}'.format('no-widget-toolbar' if hide_toolbar else '');">