Sha256: 8cd4bcceea3964dc06f1514312353041377686cd6d72a6488fbb00c8d94d8e9c
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
module TasksHelper def icon_for_task task icon = 'icon_warning.gif' alt = 'Unknwon' if task.pending? && ! task.reloading_config? icon = 'icon_pending.gif' alt = 'Pending' elsif task.init_queue? || task.reloading_config? icon = 'icon_init_queue.gif' alt = 'Initialize Queue' elsif task.acquire_lock? icon = 'icon_acquire_lock.png' alt = 'Acquire Lock' elsif task.running? icon = 'icon_running.gif' alt = 'Running' elsif task.successful? icon = 'icon_successful.png' alt = 'Successful' elsif task.error? icon = 'icon_error.png' alt = 'Error!' end image_tag(icon, :alt => alt) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
queue_dispatcher-1.1.15 | app/helpers/tasks_helper.rb |
queue_dispatcher-1.1.14 | app/helpers/tasks_helper.rb |