aboutsummaryrefslogtreecommitdiff
path: root/views/_alert_counts.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-04-13 17:03:16 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-04-13 17:03:16 +0100
commit89a67770e66d11740948e90a41db6cee0482cf8e (patch)
treebe858515fb789a89d68f94975690ab019813726c /views/_alert_counts.haml
new version.
Diffstat (limited to 'views/_alert_counts.haml')
-rw-r--r--views/_alert_counts.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/views/_alert_counts.haml b/views/_alert_counts.haml
new file mode 100644
index 0000000..6dcecc0
--- /dev/null
+++ b/views/_alert_counts.haml
@@ -0,0 +1,16 @@
+.colmask.threecol
+ .colmid
+ .colleft
+ .urgent.col1
+ Urgent
+ .unacknowledged{:title=>"Urgent alert unacknowledged"} #{@urgent.length - @count_ack[:urgent]}
+ .acknowledged{:title=>"Urgent alert acknowledged"} #{@count_ack[:urgent]}
+ .normal.col2
+ Normal
+ .unacknowledged{:title=>"Normal alert unacknowledged"} #{@normal.length - @count_ack[:normal]}
+ .acknowledged{:title=>"Normal alert acknowledged"} #{@count_ack[:normal]}
+ .low.col3
+ Low
+ .unacknowledged{:title=>"Low alert unacknowledged"} #{@low.length - @count_ack[:low]}
+ .acknowledged{:title=>"Low alert acknowledged"} #{@count_ack[:low]}
+