diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 12:34:57 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 12:34:57 +0000 |
commit | 4556e36c732cf406177adba1bb55b26ec23140fa (patch) | |
tree | 2067b72daf0d8044479bc49e46bda4e03383676b /views/_navbar.haml | |
parent | f9433b22ec3fe323c7b76306dc190268b4379bfb (diff) |
Updated web interface to reinstate alert counts, and implement a working search box.
Diffstat (limited to 'views/_navbar.haml')
-rw-r--r-- | views/_navbar.haml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/views/_navbar.haml b/views/_navbar.haml index 8b16c55..bd23308 100644 --- a/views/_navbar.haml +++ b/views/_navbar.haml @@ -6,18 +6,15 @@ %li{:class => [ @alert_type == "raised" && "nav_selected"]} %a{:href => '/alerts/raised/'+@group_by} Raised ( - %span#count_raised><= @alerts_raised.length + %span#count_raised><= @alert_counts[:unacknowledged] ) %li{:class => [ @alert_type == "acknowledged" && "nav_selected"]} %a{:href => '/alerts/acknowledged/'+@group_by} Ack'd ( - %span#count_ackd><= @alerts_ackd.length - ) - %li{:class => [ @alert_type == "cleared" && "nav_selected"]} - %a{:href => '/alerts/cleared/'+@group_by} - Cleared ( - %span#count_cleared><= @alerts_cleared.length + %span#count_ackd><= @alert_counts[:acknowledged] ) + %li{:class => [ request.path_info =~ /^\/search/ && "nav_selected"]} + %a{:href => '/search'} Search %li{:class => [ request.path_info =~ /^\/events/ && "nav_selected"]} %a{:href => '/events/calendar'} Events %li |