aboutsummaryrefslogtreecommitdiff
path: root/views/_navbar.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:47:24 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:47:24 +0100
commitfc0327f91fb134e1df994143a78c22df7d8f62e4 (patch)
tree9fb1161dbdece4428e6c65b1d555a67c7908fa9e /views/_navbar.haml
parent3576923edf788eecb4320e034f5afaaf625bd62e (diff)
Big interface clear up
Diffstat (limited to 'views/_navbar.haml')
-rw-r--r--views/_navbar.haml16
1 files changed, 11 insertions, 5 deletions
diff --git a/views/_navbar.haml b/views/_navbar.haml
index 2384baf..4f81450 100644
--- a/views/_navbar.haml
+++ b/views/_navbar.haml
@@ -1,15 +1,21 @@
#navbar
%ul
- %li
+ %li#nav_index
%a{:href => "/"} Mauve
- if @person
- %li{:id => [ @alert_type == "raised" && "nav_selected"]}
+ %li{:class => [ @alert_type == "raised" && "nav_selected"]}
%a{:href => '/alerts/raised/'+@group_by} Raised (#{@alerts_raised.length})
- %li{:id => [ @alert_type == "acknowledged" && "nav_selected"]}
+ %li{:class => [ @alert_type == "acknowledged" && "nav_selected"]}
%a{:href => '/alerts/acknowledged/'+@group_by} Ack'd (#{@alerts_ackd.length})
- %li{:id => [ @alert_type == "cleared" && "nav_selected"]}
+ %li{:class => [ @alert_type == "cleared" && "nav_selected"]}
%a{:href => '/alerts/cleared/'+@group_by} Cleared (#{@alerts_cleared.length})
%li
%a{:href => '/logout'} Log out
%br
-
+- %w(notice error).each do |klass|
+ - unless flash[klass].to_s.empty?
+ %div{:class => ["flash", klass]}
+ :textile
+ #{flash[klass]}
+ :javascript
+ $(document).ready(function () { $('div.flash').delay(1000).fadeOut(2000);});