Module: OmahaReportsHelper

Defined in:
app/helpers/omaha_reports_helper.rb

Instance Method Summary collapse

Instance Method Details

#iconclass_for_omaha_status(status) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/helpers/omaha_reports_helper.rb', line 4

def iconclass_for_omaha_status(status)
  case status.to_sym
  when :complete
    'pficon pficon-ok'
  when :downloading
    'fa fa-download text-info'
  when :downloaded
    'fa fa-download text-success'
  when :installed
    'fa fa-sign-in text-success'
  when :instance_hold
    'fa fa-pause-circle-o text-warning'
  when :error
    'pficon pficon-error-circle-o'
  else
    'th'
  end
end


23
24
25
26
27
28
29
# File 'app/helpers/omaha_reports_helper.rb', line 23

def operatingsystem_link(operatingsystem)
  link_to_if_authorized(os_name(operatingsystem),
                        hash_for_edit_operatingsystem_path(
                          :id => operatingsystem
                        ).merge(:auth_object => operatingsystem,
                                :authorizer => authorizer))
end