blob: 3ee96eb9bef69a24caa38c4d356860902e5ca3ec (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | # -*- coding: utf-8 -*-
module ImportResourcesHelper
  # Import statuses helper
  def import_resource_status(status)
      cls =''
      cls = 'success' if status == 'OK'
      cls = 'warning' if status == 'WARNING'
      cls = 'danger'  if status == 'ERROR'
      cls = 'alert'  if status == 'IGNORED'
      content_tag :span, '', class: "fa fa-circle text-#{cls}"
  end
end
 |