Sha256: 1ee753187e6f5e81e70ecbac251258b7654a6c8e4f3690d255b76e8f2341a4d2
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
<% rows = @historical_jobs.each do |job| historical_job = ::Naf::HistoricalJob.find_by_id(job[0]) if job[1].present? && historical_job.present? && historical_job.machine_runner_invocation.present? invocation = historical_job.machine_runner_invocation if invocation.status != 'dead' && job[10] == 'Running' job[1] = "<div class='" + invocation.status + "'>" + job[1] + "</div>".html_safe end end job[12] = link_to image_tag('papertrail_job.png', class: 'action', title: "View job(id: #{job[0]}, title: #{job[4]}) log in Papertrail"), job[12], { target: '_blank', class: "papertrail", id: job[0] } if job[10] == "Running" || job[10] == 'Queued' || job[10] == 'Waiting' job[12] << " ".html_safe job[12] << (link_to image_tag('terminate.png', class: 'action', title: "Terminate job(id: #{job[0]}, title: #{job[4]})"), "#", { class: "terminate", id: job[0]}) end end %> <%= raw rows %>
Version data entries
5 entries across 5 versions & 1 rubygems