Module: TasksHelper
- Defined in:
- app/helpers/tasks_helper.rb
Instance Method Summary collapse
Instance Method Details
#task_status(status) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/tasks_helper.rb', line 3 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 |