# HG changeset patch # User Marcin Kuzminski # Date 2019-10-22 17:56:49 # Node ID 7c37016cbffad70dec0d101751d34834b76ed56b # Parent 5283766048b75e1dc7af267d2344c48687dcd4bd helpers: bool2icon will expose title of values as tooltip. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -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') #==============================================================================