diff options
| author | Luc Donnet | 2017-11-30 08:42:11 +0100 |
|---|---|---|
| committer | GitHub | 2017-11-30 08:42:11 +0100 |
| commit | 232aa40e530699102eaaed6cf39f4b052e6bcc5f (patch) | |
| tree | e393b0455988ec490789fc57276e3223688813ab /app/helpers | |
| parent | 37d51a844f080d32bfd10de2c6daa6f3223c539e (diff) | |
| parent | 7e381cb823641e8e147b2d5ecc3be94aa5e63c44 (diff) | |
| download | chouette-core-232aa40e530699102eaaed6cf39f4b052e6bcc5f.tar.bz2 | |
Merge pull request #128 from af83/4987-compliance_check-sets_show
4987 compliance check sets show
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/compliance_check_sets_helper.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/helpers/compliance_check_sets_helper.rb b/app/helpers/compliance_check_sets_helper.rb index fc7165fed..b255aee63 100644 --- a/app/helpers/compliance_check_sets_helper.rb +++ b/app/helpers/compliance_check_sets_helper.rb @@ -13,4 +13,18 @@ module ComplianceCheckSetsHelper compliance_check.compliance_check_set, compliance_check) end + + # Import statuses helper + def compliance_check_set_status(status) + if %w[new running pending].include? status + content_tag :span, '', class: "fa fa-clock-o" + else + 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 end |
