Sha256: 8dbc75ba4ba866a099cf4f35e09bec6f6e60122afcfb9b7c842d06ffcad73806

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

- styles = {waiting: :success, processing: :info, crashed: :error, done: :success }

%h2 Workers

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

  %tr
    %th ID
    %th status
    %th job
    %th.text-right updated

  - @worker_vars.each do |wid, vars|
    -# status = vars[:status]
    - style = styles[status] || ""

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

    %tr{class: style.to_s}
      %td= wid
      %td= vars[:status]
      %td= vars[:jobid]
      %td.text-right
        = no_news_for
        s

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.202.2 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.202.1 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.202 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.200 lib/rest-ftp-daemon/views/dashboard_workers.haml
rest-ftp-daemon-0.104.5 lib/rest-ftp-daemon/views/dashboard_workers.haml