Simplify workflow button display logic

This change splits the logic and the presentation, which allows to remove a conditional in the partial.