2023-11-16 20:23:09 +00:00
|
|
|
module JobsHelper
|
2023-11-27 08:55:57 +00:00
|
|
|
def total_progress_bar(job)
|
|
|
|
progress_bar(job.done_ratio,
|
|
|
|
legend: "#{job.done_ratio}%
|
|
|
|
(#{l_hours_short(job.total_time_logged)}/#{l_hours_short(job.total_time_budget)})",
|
2023-11-30 19:50:40 +00:00
|
|
|
class: "progress")
|
2023-11-27 08:55:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def progress_bar_for(budget)
|
2023-11-30 19:50:40 +00:00
|
|
|
progress_bar(budget.done_ratio,
|
|
|
|
legend: "#{budget.done_ratio}%
|
|
|
|
(#{l_hours_short(budget.total_time_logged)}/#{l_hours_short(budget.hours)})",
|
|
|
|
class: "progress")
|
2023-11-27 08:55:57 +00:00
|
|
|
end
|
2023-11-16 20:23:09 +00:00
|
|
|
end
|