Sha256: 3a086f5687bf27aa2e2c8c3a54b282155f8a144c9c397b39b43eba557545f6bf
Contents?: true
Size: 573 Bytes
Versions: 8
Compression:
Stored size: 573 Bytes
Contents
module ForemanTasks module TasksHelper def format_task_input(task, include_action = false) return '-' unless task parts = [] parts << task.get_humanized(:name) if include_action parts << Array(task.get_humanized(:input)).map do |part| if part.is_a? Array part[1][:text] else part.to_s end end.join('; ') parts.join(" ") end def format_recurring_logic_limit(thing) if thing.nil? content_tag(:i, N_('Unlimited')) else thing end end end end
Version data entries
8 entries across 8 versions & 1 rubygems