aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorcedricnjanga2018-03-12 06:17:02 -0700
committerLuc Donnet2018-03-23 17:16:43 +0100
commit0c4ebd0dbf0d8f513b6fbbd6e2808fa012771850 (patch)
treef682254132ed86642cbd350f073ff7649cdf1d41 /app/helpers
parent25df1bea61409294e9944a66a25d81ea55f0391f (diff)
downloadchouette-core-0c4ebd0dbf0d8f513b6fbbd6e2808fa012771850.tar.bz2
Refs #5146 Line state update
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/referentials_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/referentials_helper.rb b/app/helpers/referentials_helper.rb
index e464ec8a5..9c3852322 100644
--- a/app/helpers/referentials_helper.rb
+++ b/app/helpers/referentials_helper.rb
@@ -2,12 +2,12 @@ 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
+ if status
content_tag(:span, nil, class: 'fa fa-exclamation-circle fa-lg text-danger') +
- t('false')
+ t('activerecord.attributes.line.deactivated')
else
content_tag(:span, nil, class: 'fa fa-check-circle fa-lg text-success') +
- t('true')
+ t('activerecord.attributes.line.activated')
end
end