diff options
| author | cedricnjanga | 2018-01-12 14:51:00 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-01-12 14:56:34 +0100 |
| commit | 907e0300cc2ff77df67171642c7cc5579a34163a (patch) | |
| tree | 8b8eb904f918ad401004f3e1ae160c27c9aaa3df /app/helpers | |
| parent | 04e7d217a77e6b2c70a4a5994993bf0c0bbff08e (diff) | |
| download | chouette-core-907e0300cc2ff77df67171642c7cc5579a34163a.tar.bz2 | |
Refs #5163
Add compliance check resource status helper
Add small changes for CSV export
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/compliance_check_resources_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/compliance_check_resources_helper.rb b/app/helpers/compliance_check_resources_helper.rb new file mode 100644 index 000000000..95cabed88 --- /dev/null +++ b/app/helpers/compliance_check_resources_helper.rb @@ -0,0 +1,12 @@ +module ComplianceCheckResourcesHelper + + # Comlpiance Check Resources statuses helper + 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 + + content_tag :span, '', class: "fa fa-circle text-#{cls}" + end +end |
