Sha256: 40e1ee74b4b7bc3b5c2b7164f70bc949f8afe4735fdb7f34d4bb381ada7eabaf
Contents?: true
Size: 827 Bytes
Versions: 3
Compression:
Stored size: 827 Bytes
Contents
-# coding: utf-8 - variables = $pool.worker_variables %h2 Workers %table.table.table-striped.table-hover.table-condensed %thead %tr %th pool %th worker %th status %th job %th.text-right seen %tbody - 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= vars[:pool] %td= wid %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
3 entries across 3 versions & 1 rubygems