diff options
| author | cedricnjanga | 2018-03-12 06:17:02 -0700 |
|---|---|---|
| committer | cedricnjanga | 2018-03-12 06:17:02 -0700 |
| commit | e02ada352a0b204783fbc67d7c2a4266d2551082 (patch) | |
| tree | 92f446c0938f88f2ab7852cae1eb40f4e07a2f7d /app/helpers/referentials_helper.rb | |
| parent | ba30cc2c8772dbd1934d032e2a3a6a66795df4e2 (diff) | |
| download | chouette-core-e02ada352a0b204783fbc67d7c2a4266d2551082.tar.bz2 | |
Refs #5146 Line state update
Diffstat (limited to 'app/helpers/referentials_helper.rb')
| -rw-r--r-- | app/helpers/referentials_helper.rb | 6 |
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 |
