Sha256: 56d8fe97fe2fcd815eba4eab15d85431c2a59f3a0bf4987b6a49f5c651225dde

Contents?: true

Size: 725 Bytes

Versions: 4

Compression:

Stored size: 725 Bytes

Contents

-# coding: utf-8
%h2 Workers

%table.table.table-striped.table-hover.table-condensed

  %tr
    %th ID
    %th pool
    %th status
    %th job
    %th.text-right seen

  - @worker_variables.each do |vars|
    - wid = vars[:wid]
    - status = vars[:status]
    - alive = $pool.worker_alive? wid
    - trclass = WORKER_STYLES[status]

    - unless alive
      - trclass = "danger"
      - status = "DEAD"


    %tr{class: trclass.to_s}
      %td= wid
      %td= vars[:pool]
      %td= status
      %td= vars[:jid]
      %td.text-right

        - if vars[:updated_at].is_a? Time
          - no_news_for = (Time.now - vars[:updated_at]).round(0)
          = Helpers.formatted_duration no_news_for
        - else
          = "?"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.247.1 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.247.0 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.246.1 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.246.0 lib/rest-ftp-daemon/views/dashboard_workers.haml