Sha256: 0c3b5094f370906451f2c90db059344043a2faf240b80bf6cf2de703485f9d54

Contents?: true

Size: 228 Bytes

Versions: 11

Compression:

Stored size: 228 Bytes

Contents

module Delayed::Web::JobsHelper
  def status_dom_class status
    case status
    when 'executing' then 'badge badge-warning'
    when 'failed'    then 'badge badge-important'
    else                  'badge'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
delayed-web-0.4.9 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.7 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.6 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.5 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.4 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.3 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.2 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.1 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.4.0 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.3.0 app/helpers/delayed/web/jobs_helper.rb
delayed-web-0.2.0 app/helpers/delayed/web/jobs_helper.rb