aboutsummaryrefslogtreecommitdiff
path: root/views/_head3.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/_head3.haml')
-rw-r--r--views/_head3.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/_head3.haml b/views/_head3.haml
new file mode 100644
index 0000000..1a2b00f
--- /dev/null
+++ b/views/_head3.haml
@@ -0,0 +1,17 @@
+%h1
+ Mauve Alert Panel
+.alertsSummary
+ %span.urgent
+ Urgent
+ %span.nbrUnacknowledged{:title=>"Urgent alert unacknowledged"} #{@urgent.length - @count_ack[:urgent]}
+ %span.nbrAcknowledged{:title=>"Urgent alert acknowledged"} (Seen #{@count_ack[:urgent]})
+ %span.normal
+ Normal
+ %span.nbrUnacknowledged{:title=>"Normal alert unacknowledged"} #{@normal.length - @count_ack[:normal]}
+ %span.nbrAcknowledged{:title=>"Normal alert acknowledged"} (Seen #{@count_ack[:normal]})
+ %span.low
+ Low
+ %span.nbrUnacknowledged{:title=>"Low alert unacknowledged"} #{@low.length - @count_ack[:low]}
+ %span.nbrAcknowledged{:title=>"Low alert acknowledged"} (Seen #{@count_ack[:low]})
+ %a{:href=>"/logout"}
+ [Logout]