Sha256: e2dfff11ae8f114dfab7f8fa7c20a10801d7fcf75b358c4b867b5dab57d819a9

Contents?: true

Size: 273 Bytes

Versions: 7

Compression:

Stored size: 273 Bytes

Contents

module ForemanTasks
  module TasksHelper
    def format_task_input(task)
      task ? task.to_label : '-'
    end

    def format_recurring_logic_limit(thing)
      if thing.nil?
        content_tag(:i, N_('Unlimited'))
      else
        thing
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman-tasks-0.11.3 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.11.2 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.11.1 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.10.9 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.11.0 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.10.8 app/helpers/foreman_tasks/tasks_helper.rb
foreman-tasks-0.10.7 app/helpers/foreman_tasks/tasks_helper.rb