aboutsummaryrefslogtreecommitdiff
path: root/views/_head.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 12:34:57 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 12:34:57 +0000
commit4556e36c732cf406177adba1bb55b26ec23140fa (patch)
tree2067b72daf0d8044479bc49e46bda4e03383676b /views/_head.haml
parentf9433b22ec3fe323c7b76306dc190268b4379bfb (diff)
Updated web interface to reinstate alert counts, and implement a working search box.
Diffstat (limited to 'views/_head.haml')
-rw-r--r--views/_head.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/_head.haml b/views/_head.haml
index 642d408..5bcd6ae 100644
--- a/views/_head.haml
+++ b/views/_head.haml
@@ -1,5 +1,10 @@
%head
- %title= @title
+ %title
+ = @title
+ - if[:urgent, :normal, :low].all?{|k| @alert_counts.has_key?(k) }
+ [
+ = [:urgent, :normal, :low].collect{|l| @alert_counts[l]}.join(" / ")
+ ]
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes"}/
%link{:rel => "stylesheet", :href => "/stylesheets/bytemark.css"}/
%link{:rel => "stylesheet", :href => "/stylesheets/mauve.css", :media => "all", :type => "text/css"}/