Sha256: b4c9c57fffacc07fd1565231548df20f60bd47e44acaea8bc783299b052a1d37

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

module TasksHelper

  def task_status status
    icon = case status
             when "completed"
               "check"
             when "running"
               "refresh"
             when "failed"
               "remove"
             when "rollbacked"
               "fast-backward"
             when "pending"
               "th"
             when "canceled"
               "ban-circle"
             else
               "th"
           end
    icon_text(icon, status)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/helpers/tasks_helper.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/helpers/tasks_helper.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/helpers/tasks_helper.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/helpers/tasks_helper.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/helpers/tasks_helper.rb