Sha256: b0dde5bd400ca7954e4b26b3434cbaabe3b628f9cce82145f8aebefab9e7cfe1

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

- count_all = $queue.jobs_count
- counts_by_status = $queue.counts_by_status
-# jobs_without_queue = jobs


%h2
  Jobs table  

  .btn-group.btn-group-md
    - klass = only.empty? ? "btn-info" : ""
    %a.btn.btn-default{href: "?only=", class: klass}
      ALL (#{count_all})
  .btn-group.btn-group-md
    - counts_by_status.each do |status, count|
      - klass = (status.to_s == only) ? "btn-info" : ""
      %a.btn.btn-default{href: "?only=#{status}", class: klass}
        #{status} (#{count})

%table.table.table-striped.table-hover.table-condensed#jobs

  %thead
    %tr
      %th ID
      %th label
      %th source
      %th <=>
      %th target
      %th queued
      %th{width: 150} status
      %th{"min-width" => 120} error
      %th.text-right size
      %th.text-right bitrate
      %th info


    - unless queue.empty?
      %tbody.jobs
        = render :dashboard_table, {jobs: queue.reverse}

        %thead
          %tr
            %td{colspan: 13}
              %br

    - unless current.empty?
      %tbody.jobs
        = render :dashboard_table, {jobs: current.reverse}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.212.0 lib/rest-ftp-daemon/views/dashboard_jobs.haml