Sha256: 82152cc421919c30185e71badf527a0fa6301f48a47b572962f06ebda8511a85

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

namespace "SensuDashboard.Views.Stashes", (exports) ->

  class exports.Counts extends SensuDashboard.Views.Base

    name: "stashes/counts"

    initialize: (collection) ->
      @listenTo(@collection, "all", @render)

    render: ->
      template_data = { count: @collection.models.length }
      @$el.html(@template(template_data))
      this

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sensu-dashboard-0.10.4 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee
sensu-dashboard-0.10.3 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee
sensu-dashboard-0.10.2 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee
sensu-dashboard-0.10.1 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee
sensu-dashboard-0.10.0 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee
sensu-dashboard-0.9.9 lib/sensu-dashboard/assets/javascripts/views/stashes/counts.coffee