def _bs_classname(type_, context=None):
    """string formatting to make simple bootstrap classnames"""
    return '{}{}'.format(type_, ' {}-{}'.format(type_, context) if context
         is not None else '')
