Sha256: fa2039e1714b9307dfe961e57d65d81f36c2695d7905a8b62769f81713e6e317

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

-# coding: utf-8
- counts_by_status = $queue.counts_by_status
- counts_all = $queue.jobs_count
- jobs = @paginate.subset


.row

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

%br

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

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

      %thead
        %tr
          %th ID
          %th label
          %th source
          %th mode
          %th target
          %th queued
          %th.error status
          %th{"min-width" => 120} error
          %th.text-right filesize
          %th.text-right bitrate
          %th{title: "Worker ID"} W
          %th{title: "Priority"} P
          %th{title: "Runs count"} R

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.243.2 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.243.1 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.243 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.242.5 lib/rest-ftp-daemon/views/dashboard_jobs.haml
rest-ftp-daemon-0.242.4 lib/rest-ftp-daemon/views/dashboard_jobs.haml