Sha256: 2be914132d8bd8849b38c73384b6a7bb1e0eeb78c1a583e5e08527665c7f6dda

Contents?: true

Size: 594 Bytes

Versions: 9

Compression:

Stored size: 594 Bytes

Contents

json.start @start_at.strftime('%Y-%m-%d %H:%M:%S')
json.end   @end_at.strftime('%Y-%m-%d %H:%M:%S')
json.data do
  json.array! @instances do |instance|
    json.id instance.id
    json.content "<a href='#{job_definition_job_instance_path(instance.job_definition, instance)}'>##{instance.job_definition.id} #{instance.job_definition.name}</a>"
    json.start instance.created_at.strftime('%Y-%m-%d %H:%M:%S')
    json.end (instance.error_at || instance.canceled_at || instance.finished_at || Time.current).try!(:strftime, '%Y-%m-%d %H:%M:%S')
    json.group instance.job_definition.id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuroko2-0.4.3 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.4.2 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.4.1 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.4.0 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.3.4 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.3.3 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.3.2 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.3.1 app/views/kuroko2/job_timelines/dataset.json.jbuilder
kuroko2-0.3.0 app/views/kuroko2/job_timelines/dataset.json.jbuilder