Sha256: 0baa8b9e507689289586012333bb4057ae229c9c2a92859c2f6265624f0e4624
Contents?: true
Size: 1.5 KB
Versions: 8
Compression:
Stored size: 1.5 KB
Contents
%div .title Delayed 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{ :id => "job_#{job[:name].gsub('::','__')}", :class => "#{index % 2 === 0 ? 'striped' : ''}" } %td.col.all.left= link_to job[:name], dj_dashboard_job_stats_path(:job_name => job[:name], :type => :all), :remote => true %td.col.running= link_to_if (job[:running] > 0), number_with_delimiter(job[:running]), dj_dashboard_job_stats_path(:job_name => job[:name], :type => :running), :remote => true %td.col.pending= link_to_if (job[:pending] > 0), number_with_delimiter(job[:pending]), dj_dashboard_job_stats_path(:job_name => job[:name], :type => :pending), :remote => true %td.col.retrying= link_to_if (job[:retrying] > 0), number_with_delimiter(job[:retrying]), dj_dashboard_job_stats_path(:job_name => job[:name], :type => :retrying), :remote => true %td.col.failed= link_to_if (job[:failed] > 0), number_with_delimiter(job[:failed]), dj_dashboard_job_stats_path(:job_name => job[:name], :type => :failed), :remote => true %tr %td.total %td.total= number_with_delimiter @jobs.map { |j| j[:running] }.sum %td.total= number_with_delimiter @jobs.map { |j| j[:pending] }.sum %td.total= number_with_delimiter @jobs.map { |j| j[:retrying] }.sum %td.total= number_with_delimiter @jobs.map { |j| j[:failed] }.sum
Version data entries
8 entries across 8 versions & 1 rubygems