parameters: (value)
return_statement: return mark_safe(icon_html)
docstring: Create a safe HTML version of True/False using Bootstrap styles.
      :param value: a boolean.
      :returns: a string of html for an icon representing the boolean.
docstring_summary: Create a safe HTML version of True/False using Bootstrap styles.
      :param value: a boolean.
      :returns: a string of html for an icon representing the boolean.
docstring_tokens: Create a safe HTML version of True / False using Bootstrap styles . : param value : a boolean . : returns : a string of html for an icon representing the boolean .
function: def bool_icon(value):
      """
      Create a safe HTML version of True/False using Bootstrap styles.
      :param value: a boolean.
      :returns: a string of html for an icon representing the boolean.
      """
      if value:
          classes = 'icon-true text-success'
      else:
          classes = 'icon-false text-danger'
      icon_html = '<i class="{}" aria-hidden="true"></i>'.format(classes)
      return mark_safe(icon_html)
function_tokens: def bool_icon ( value ) : if value : classes = 'icon-true text-success' else : classes = 'icon-false text-danger' icon_html = '<i class="{}" aria-hidden="true"></i>' . format ( classes ) return mark_safe ( icon_html )