Sha256: 013cc7fee50797451196e4edd6ad7e412db706b0345d1656a948339e425652d6

Contents?: true

Size: 929 Bytes

Versions: 11

Compression:

Stored size: 929 Bytes

Contents

- status = job.status(Time.zone)
.id
  %label ID:
  = status.delete('id')
.status-message
  %label Description:
  = status.delete('description')
.status-message
  %label Duration:
  = status.delete('duration')
.status-message
  %label Record Count:
  = status.delete('record_count')
.created_at
  %label Created At:
  = status.delete('created_at')
.status-message
  %label Started At:
  = status.delete('started_at')
.status-message
  %label % Complete:
  = status.delete('percent_complete')

- remaining = {}
- status.each_pair do |key, value|
  - next if value.blank?
  .status-message
  - if ['state', '_type'].include?(key)
  - elsif value.kind_of?(Hash) || value.kind_of?(Array)
    - remaining[key] = value
  - else
    %label= "#{key.to_s.titleize}:"
    = value
.clearfix

- remaining.each_pair do |key, value|
  .status-message
    %label= "#{key.to_s.titleize}:"
    %pre
      %code= pretty_print_array_or_hash(value)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rocketjob_mission_control-2.1.1 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-2.1.0 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-2.0.0 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-2.0.0.rc2 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-2.0.0.rc1 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.2.4 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.2.3 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.2.2 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.2.1 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.2.0 app/views/rocket_job_mission_control/jobs/_status.html.haml
rocketjob_mission_control-1.1.0 app/views/rocket_job_mission_control/jobs/_status.html.haml