Sha256: a2c8559df8465f39067e134cb63ec497e4bf48d7ebeedc09967c75197d5637a8

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

- counts_by_status = $queue.counts_by_status
- counts_all = $queue.jobs_count
- jobs = @paginate.subset


.row

  .col-md-5
    .btn-group.btn-group-md
      - klass = @only.empty? ? "btn-info" : ""
      %a.btn.btn-default{href: "?only=", class: klass}
        ALL (#{counts_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})

  .col-md-7
    = @paginate.browser



.row
  #box-jobs.col-md-12

    %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 jobs.empty?
          %tbody.jobs
            = render :dashboard_table, {jobs: jobs.reverse}

Version data entries

1 entries across 1 versions & 1 rubygems

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