Sha256: 589ec3dbbdad4357558466d8b01f07fe459d09812cb376bdb44280c8c5f1fb9b
Contents?: true
Size: 833 Bytes
Versions: 7
Compression:
Stored size: 833 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 |wid, 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
7 entries across 7 versions & 1 rubygems