diff options
| author | Luc Donnet | 2018-03-08 15:03:34 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-08 15:03:34 +0100 |
| commit | d79abf1d6c63004da9f1d969e8edee4d9cd52393 (patch) | |
| tree | 3bcf66a8f8e280698aadf3c4847bf106a51cf3c6 /app/helpers | |
| parent | a53eb22c144b12cf7b662db38ddbbba20af89d3a (diff) | |
| download | chouette-core-d79abf1d6c63004da9f1d969e8edee4d9cd52393.tar.bz2 | |
Fix compliance_check_resource and compliance_check_set status Refs #5989 @15989-fix_compliance_check_resource_status
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/compliance_check_resources_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/compliance_check_resources_helper.rb b/app/helpers/compliance_check_resources_helper.rb index 95cabed88..19b152e8d 100644 --- a/app/helpers/compliance_check_resources_helper.rb +++ b/app/helpers/compliance_check_resources_helper.rb @@ -4,8 +4,8 @@ module ComplianceCheckResourcesHelper def compliance_check_resource_status(status) cls = '' cls = 'success' if status == 'OK' - cls = 'warning' if status == 'WARNING' - cls = 'danger' if %w[ERROR IGNORED].include? status + cls = 'warning' if %w[WARNING IGNORED].include? status + cls = 'danger' if status == 'ERROR' content_tag :span, '', class: "fa fa-circle text-#{cls}" end |
