blob: 01e5a5879f08eca9ff8836fadcfcb67617a7ab22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module ReferentialsHelper
# Outputs a green check icon and the text "Oui" or a red exclamation mark
# icon and the text "Non" based on `status`
def line_status(status)
if status
content_tag(:span, nil, class: 'fa fa-exclamation-circle fa-lg text-danger') +
t('false')
else
content_tag(:span, nil, class: 'fa fa-check-circle fa-lg text-success') +
t('true')
end
end
end
|