blob: 19b152e8d3160f4bb72f5666a52417d5b8d542e0 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | module ComplianceCheckResourcesHelper
    # Comlpiance Check Resources statuses helper
  def compliance_check_resource_status(status)
      cls = ''
      cls = 'success' if status == 'OK'
      cls = 'warning' if %w[WARNING IGNORED].include? status
      cls = 'danger' if status == 'ERROR'
      content_tag :span, '', class: "fa fa-circle text-#{cls}"
  end
end
 |