Redmine-Jobs/app/helpers/jobs_helper.rb

13 lines
339 B
Ruby

module JobsHelper
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)})",
class: "progress")
end
def progress_bar_for(budget)
l_hours_short(budget.hours)
end
end