Hobo Cookbook

View Source



Renders a div containing transition buttons for every transition available to the current user.

For example, you could use this on a Friendship card: the person invited to have friendship would automatically see ‘Accept’ and ‘Decline’ buttons, while the person initiating the invite would see ‘Retract’.

This tag behaves similarly to repeat: an else tag may be used to handle the case of no buttons:

<transition-buttons/><else>Sorry, no buttons to press.</else>

Show Source


No Comments to display