Sha256: deaa8372dd415a312685ec72df25060e74fa38ae510af79cbe468b1a8b695062

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

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

  class exports.Error extends SensuDashboard.Views.Base

    el: $("#main")

    name: "error"

    initialize: ->
      @template_data =
        title: "Oh no!" ? @options.title
        message: "Something isn't right. Try refreshing." ? @options.message
      @render()

    render: ->
      @$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/error.coffee
sensu-dashboard-0.10.3 lib/sensu-dashboard/assets/javascripts/views/error.coffee
sensu-dashboard-0.10.2 lib/sensu-dashboard/assets/javascripts/views/error.coffee
sensu-dashboard-0.10.1 lib/sensu-dashboard/assets/javascripts/views/error.coffee
sensu-dashboard-0.10.0 lib/sensu-dashboard/assets/javascripts/views/error.coffee
sensu-dashboard-0.9.9 lib/sensu-dashboard/assets/javascripts/views/error.coffee