Sha256: b13976a631d4354ba5a636ff6ea368c9a91e35d21731d89b12250055bb68f74f
Contents?: true
Size: 1.46 KB
Versions: 7
Compression:
Stored size: 1.46 KB
Contents
-# coding: utf-8 - jobs_by_status = RestFtpDaemon::JobQueue.instance.jobs_by_status - counts_all = RestFtpDaemon::JobQueue.instance.jobs_count - jobs = @paginate.subset .btn-group.btn-group-xs.filters - klass = @filter.empty? ? "btn-info" : "" %a.btn.btn-default{href: dashboard_url(), class: klass} ALL (#{counts_all}) .btn-group.btn-group-xs.filters - jobs_by_status.each do |status, count| - klass = (status.to_s == @filter) ? "btn-info" : "" %a.btn.btn-default{href: dashboard_url(status), class: klass} #{status} (#{count}) .btn-group.btn-group-xs.paginator = @paginate.browser %br %br .row #box-jobs.col-md-12 %table.table.table-striped.table-hover.table-condensed#jobs %thead %tr %th ID %th pool %th label %th type %th %th source %th %th target %th queued %th.error status %th{"min-width" => 120} detail %th.text-right size %th.text-right bitrate %th{title: "Worker ID"} W %th{title: "Priority"} P %th{title: "Runs count"} R - @jobs_queued.each do |pool, jobs| - unless jobs.empty? %tbody.jobs = render :dashboard_table, {jobs: jobs} %thead %tr %td{colspan: 14} %br - unless jobs.empty? %tbody.jobs = render :dashboard_table, {jobs: jobs}
Version data entries
7 entries across 7 versions & 1 rubygems