Sha256: 748ea2349a8030c664835f85e67793f7e48800b0b976a7e784a42713557f60b2

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

.col-md-10.col-md-offset-1
  .jumbotron
    %h3 There are currently #{@jobs.count} jobs running.
  #accordion.panel-group
  - @jobs.each do |job|
    .panel.panel-default
      .panel-heading
        %h4.panel-title
          %a.collapsed{href: "##{job.id}", data: {toggle: 'collapse', parent: '#accordion'} }
            %i.fa.fa-plus-square-o{ style: 'font-size: 80%;'}
            = job_title(job)
      .panel-collapse.collapse{ id: job.id }
        .panel-body
          .info
            .progress
              .progress-bar{ style: "width: #{job.percent_complete}%; min-width: 1em;", title: "#{job.percent_complete}% percent complete."}
          - if job.kind_of?(RocketJob::SlicedJob)
            .slice_count
              %label Slices Running:
              -#= job.input.find_all { |s| s.state == :running }.count
              = job.input.collection.aggregate([{ '$match' => { state: 'queued' } },{ '$group' => { _id: nil, count: { '$sum' => 1 } } }] )
          - else
            .worker
              %label Worker:
              = job.worker_name

          = render partial: 'status', locals: { job: job }
        - if job.kind_of?(RocketJob::SlicedJob)
          %table.table
            %tr
              %th worker
              %th parameters
            - job.input.each('state' => 'running') do |slice|
              %tr
                %td= slice.worker_name
                %td
                  %pre
                    %code= display_slice_info(slice, job.encrypt?)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocketjob_mission_control-1.2.1 app/views/rocket_job_mission_control/jobs/running.html.haml