Sha256: 62c11d4edb9e2bf87665af2739d64e3cd7ae9626a6148b33f95a96a61c3ee7c6

Contents?: true

Size: 440 Bytes

Versions: 25

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module ScheduledTasksHelper
  def scheduled_tasks_status_time(time)
    if time.present?
      I18n.l(time, format: :short)
    else
      '-'
    end
  end

  def scheduled_tasks_log(scheduled_task, log_identifier)
    if File.exist?(scheduled_task.log_file(log_identifier))
      link_to I18n.t(:log), log_scheduled_task_path(scheduled_task, identifier: log_identifier)
    else
      '-'
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
tasks_scheduler-0.9.0 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.8.0 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.7.0 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.13 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.12 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.11 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.10 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.9 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.8 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.7 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.6 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.5 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.4 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.3 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.2 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.1 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.6.0 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.5.4 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.5.3 app/helpers/scheduled_tasks_helper.rb
tasks_scheduler-0.5.2 app/helpers/scheduled_tasks_helper.rb