OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/helpers/tasks_helper.rb

16 lines
395 B

module TasksHelper
unloadable
def blocked_ids(blocked)
blocked.map{|b| b.id }.join(',')
end
def build_inline_style(task)
task.nil? || task.assigned_to.nil? ? '' : "style='background-color:#{task.assigned_to.backlogs_preference(:task_color)}'"
end
def remaining_hours(item)
item.remaining_hours.nil? || item.remaining_hours==0 ? "" : item.remaining_hours
end
end