Sha256: efe72e5656651705e88e2012a7d0c529de912120477426b4565f914738077069

Contents?: true

Size: 698 Bytes

Versions: 5

Compression:

Stored size: 698 Bytes

Contents

%div
  .title Current Jobs
  %table#jobs
    %tr
      %td.header.left Job
      %td.header Running
      %td.header Pending
      %td.header Retrying
      %td.header.right Failed
      - @jobs.each.with_index do |job, index|
        %tr{ :class => "#{index % 2 === 0 ? 'striped' : ''}" }
          %td.col.left= job[:name]
          %td.col= job[:running]
          %td.col= job[:pending]
          %td.col= job[:retrying]
          %td.col= job[:failed]
      %tr
        %td.total
        %td.total= @jobs.map { |j| j[:running] }.sum
        %td.total= @jobs.map { |j| j[:pending] }.sum
        %td.total= @jobs.map { |j| j[:retrying] }.sum
        %td.total= @jobs.map { |j| j[:failed] }.sum

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dj_dashboard-0.0.5 app/views/dj_dashboard/jobs/index.html.haml
dj_dashboard-0.0.4 app/views/dj_dashboard/jobs/index.html.haml
dj_dashboard-0.0.3 app/views/dj_dashboard/jobs/index.html.haml
dj_dashboard-0.0.2 app/views/dj_dashboard/jobs/index.html.haml
dj_dashboard-0.0.1 app/views/dj_dashboard/jobs/index.html.haml