Skip to content

Instantly share code, notes, and snippets.

@mdellavo
Created September 18, 2010 22:52
Show Gist options
  • Save mdellavo/586137 to your computer and use it in GitHub Desktop.
Save mdellavo/586137 to your computer and use it in GitHub Desktop.
<%def name="yesno(value, text=None)">
<span class="${'positive' if value else 'negative'}">
${text or ('Yes' if value else 'No')}
</span>
</%def>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment