-# coding: utf-8 - jobs.each do |job| - work_progress = job.get_info(INFO_PROGRESS) - error_message = job.get_info(:error_message) - transfer_total = job.get_info(:transfer_total) - transfer_bitrate = job.get_info(:transfer_bitrate) - work_sent = job.get_info(:work_sent) - source_count = job.get_info(:source_count) || 0 - source_processed = job.get_info(:source_processed) || 0 - source_current = job.get_info(:source_current) - job_working = [JOB_STATUS_UPLOADING, JOB_STATUS_TRANSFORMING].include? job.status - trclass = JOB_STYLES[job.status] - runs = job.runs.to_i - unless job.error.nil? - trclass = "warning" %tr{class: trclass.to_s} %td %a{href: dashboard_job_url(job)} %b= job.id %td= job.pool %td= job.label %td= job_type job %td.text-right= location_label job.source_uri %td= token_highlight job.source %td.text-right= location_label job.target_uri %td= token_highlight job.target %td= datetime_short(job.queued_at) %td %span.push-status = job.status - if (job.status != JOB_STATUS_FINISHED) && (source_processed < source_count) = " (#{source_processed}/#{source_count})" - if job_working - unless work_progress.nil? %span.push-progress = "#{work_progress}%" %br %span.push-filename %b= source_current unless source_current.nil? %td -# unless job.error || job.status == JOB_STATUS_FINISHED - if job_working .progress .progress-bar{style:"width: #{work_progress}%;"} = "#{work_progress} %" - else .error{title: error_message} = text_or_empty(job.error) %td.nobr.text-right = format_bytes(transfer_total, "B") %td.nobr.text-right{title: "time: #{job.exectime} s"} - if transfer_bitrate %span.push-bitrate = format_bytes(transfer_bitrate, "bps") %td - unless job.wid.nil? .label.label-warning.flag.worker-label= job.wid %td - unless job.priority.nil? .label.label-default.flag.worker-label= job.priority %td .label.flag.worker-label{class: job_runs_style(runs)}= runs