Sha256: 1523a65a576fe73818efcb2e47cf14b5203b839c82ef375a3f2fee3a68780f3c

Contents?: true

Size: 841 Bytes

Versions: 3

Compression:

Stored size: 841 Bytes

Contents

- count_all = $queue.all_size
- counts_by_status = $queue.counts_by_status


%h2
  Jobs  

  .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 date
      %th{width: 220} status
      %th{width: 150} error
      %th.text-right size
      %th.text-right bitrate
      %th info

  - if true
    %tbody.current
      = render :dashboard_table, {jobs: jobs}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.202.2 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.202.1 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.202 lib/rest-ftp-daemon/views/dashboard_jobs.haml