Sha256: 028777b32100c7ab556780d6c6c27bae6e617ca794c151663ca81afeb408a584

Contents?: true

Size: 715 Bytes

Versions: 10

Compression:

Stored size: 715 Bytes

Contents

class Dashing.PingdomSummary extends Dashing.Widget
  @accessor 'up', Dashing.AnimatedValue
  @accessor 'down', Dashing.AnimatedValue
  @accessor 'unconfirmed_down', Dashing.AnimatedValue
  @accessor 'unknown', Dashing.AnimatedValue
  @accessor 'paused', Dashing.AnimatedValue
  @accessor 'arrowClass', ->
    switch @get('status')
      when "ok"       then 'fa fa-smile-o'
      when "critical" then 'fa fa-frown-o'
      else                 'fa fa-meh-o'

  @accessor 'statusClass', ->
    switch @get('status')
      when "ok"       then 'current-status-container status-up'
      when "critical" then 'current-status-container status-down'
      else                 'current-status-container status-unknown'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dashing-contrib-0.2.9 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.8 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.7 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.6 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.5 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.4 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.3 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.2 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.1 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee
dashing-contrib-0.2.0 lib/dashing-contrib/assets/widgets/pingdom_summary/pingdom_summary.coffee