Sha256: 5796c4e42fd4173bd3da22eaabf7bcbd8edc570b9df28be005ae47ee7372e6f1

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

%tr.stats{:class => "#{@stat_type.to_s}", :id => "stats_#{@job_name.gsub('::', '__')}"}
  %td{:colspan => 5}
    %h3= "#{@stat_type.to_s.capitalize} Jobs"
    #job_pagination= will_paginate(@jobs)
    %table.stat
      %tr.header
        %td Priority
        %td Created
        %td Run
        %td Locked
        %td Attempts
        %td Failed
      - @jobs.each.with_index do |job, index|
        %tr{:class => "#{index % 2 === 0 ? 'striped' : nil}"}
          %td.center= job.priority
          %td= "#{time_ago_in_words job.created_at} ago"
          %td= job.run_at ? "#{time_ago_in_words job.run_at} ago" : "--"
          %td= job.locked_at ? "#{time_ago_in_words job.locked_at} ago" : "--"
          %td.center= job.attempts
          %td= job.failed_at ? "#{time_ago_in_words job.failed_at} ago" : "--"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dj_dashboard-0.0.8.4 app/views/dj_dashboard/jobs/_stats.html.haml
dj_dashboard-0.0.8.3 app/views/dj_dashboard/jobs/_stats.html.haml
dj_dashboard-0.0.8.2 app/views/dj_dashboard/jobs/_stats.html.haml
dj_dashboard-0.0.8.1 app/views/dj_dashboard/jobs/_stats.html.haml
dj_dashboard-0.0.8 app/views/dj_dashboard/jobs/_stats.html.haml