sensu-dashboard 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,12 +32,14 @@ function fetchEvents() {
32
32
  var node = data[nodekey];
33
33
 
34
34
  for (var a in node) {
35
+ var is_unknown = node[a]['status'] >= 3 || node[a]['status'] < 0;
35
36
  var dataObject = {
36
37
  client: nodekey,
37
38
  check: a,
38
39
  status: node[a]['status'],
39
40
  output: node[a]['output'],
40
- occurrences: node[a]['occurrences']
41
+ occurrences: node[a]['occurrences'],
42
+ is_unknown: is_unknown
41
43
  };
42
44
 
43
45
  if (m_events[node[a]['status']] == null) {
@@ -1,5 +1,5 @@
1
1
  module Sensu
2
2
  module Dashboard
3
- VERSION = "0.5.5"
3
+ VERSION = "0.5.6"
4
4
  end
5
5
  end
@@ -1,6 +1,10 @@
1
1
  <!-- Event template -->
2
2
  <script id="eventTemplate" type="text/x-jquery-tmpl">
3
+ {{if is_unknown}}
4
+ <tr class="status3" id="${client}${check}" rel="leanModal" href="#event_details_modal">
5
+ {{else}}
3
6
  <tr class="status${status}" id="${client}${check}" rel="leanModal" href="#event_details_modal">
7
+ {{/if}}
4
8
  <td id="client">${client}</td><td id="check">${check}</td><td id="status">${status}</td><td id="output">${output}</td>
5
9
  </tr>
6
10
  </script>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Kolberg
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-02 00:00:00 -07:00
19
+ date: 2011-11-04 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency