unclecheese/silverstripe-gridfield-betterbuttons — pull request #54 by kopymark (2014-06-02 16:11:14+00:00)
Title: ShouldDisplay() for Unpublish and conditional display of groups

I've added logic to only display the unpublish option if the versioned record has been published, and as that left an empty group, also added logic to only show a group button if it has children.