aboutsummaryrefslogtreecommitdiff
path: root/views/_get_list.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/_get_list.haml
parent3576923edf788eecb4320e034f5afaaf625bd62e (diff)
Big interface clear up
Diffstat (limited to 'views/_get_list.haml')
-rw-r--r--views/_get_list.haml40
1 files changed, 0 insertions, 40 deletions
diff --git a/views/_get_list.haml b/views/_get_list.haml
deleted file mode 100644
index cc8fb9b..0000000
--- a/views/_get_list.haml
+++ /dev/null
@@ -1,40 +0,0 @@
-//- alerts.each_pair do |subject, alerts|
-- alertsList.keys.sort.each do |subject|
- - alerts = alertsList[subject]
- - if 1 < alerts.length()
- %li{:id=>"firstAlert#{alerts[0].id}"}
- - if "urgent" == level
- %span.levelUrgent Urgent
- - elsif "normal" == level
- %span.levelNormal Normal
- -else
- %span.levelLow Low
- .conglomerate
- %span.subject= alerts[0].subject
- - if alerts[0].acknowledged?
- There are <strong>#{alerts.length}</strong> alerts in this conglomerate.
- - else
- - shortestAckTime = 9223372036854775807
- - lst = Array.new
- - alerts.each do |alert|
- - shortestAckTime = alert.get_default_acknowledge_time() if alert.get_default_acknowledge_time() < shortestAckTime
- - lst << alert.id
- %a{:href=>"javascript:", :onClick=>"showBulkAcknowledgeStatus(event, #{"['#{lst.join('\',\'')}']"}, #{shortestAckTime});"}
- [Bulk acknowledge <strong>#{alerts.length}</strong> alerts for
- - hrs = shortestAckTime / 3600
- - if 1 == hrs
- one hour.
- - elsif 24 > hrs and 1 > hrs
- #{hrs} hours
- - elsif 24 == hrs
- one day.
- - elsif 24 < hrs and 168 > hrs
- #{hrs/24} days.
- - elsif 168 == hrs
- one week
- - else
- #{hrs/168} weeks
- ]
- %ul= partial("get_alerts", :locals => {:level => level, :alerts => alerts})
- - else
- = partial("get_alerts", :locals => {:level => level, :alerts => alerts})