helpers: bool2icon will expose title of values as tooltip.
This commit is contained in:
parent
ba9f6d58e3
commit
0073ec35de
1 changed files with 2 additions and 2 deletions
|
|
@ -977,10 +977,10 @@ def bool2icon(value, show_at_false=True):
|
|||
"""
|
||||
|
||||
if value: # does bool conversion
|
||||
return HTML.tag('i', class_="icon-true")
|
||||
return HTML.tag('i', class_="icon-true", title='True')
|
||||
else: # not true as bool
|
||||
if show_at_false:
|
||||
return HTML.tag('i', class_="icon-false")
|
||||
return HTML.tag('i', class_="icon-false", title='False')
|
||||
return HTML.tag('i')
|
||||
|
||||
#==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue