diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:47:24 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:47:24 +0100 |
commit | fc0327f91fb134e1df994143a78c22df7d8f62e4 (patch) | |
tree | 9fb1161dbdece4428e6c65b1d555a67c7908fa9e /views/_get_alerts.haml | |
parent | 3576923edf788eecb4320e034f5afaaf625bd62e (diff) |
Big interface clear up
Diffstat (limited to 'views/_get_alerts.haml')
-rw-r--r-- | views/_get_alerts.haml | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/views/_get_alerts.haml b/views/_get_alerts.haml deleted file mode 100644 index 8abff2e..0000000 --- a/views/_get_alerts.haml +++ /dev/null @@ -1,43 +0,0 @@ -- alerts.each do |alert| - %li{:id=>"alert#{alert.id}"} - .alert - - if "urgent" == level - .levelUrgent - %a{:href=>"javascript:", :onClick=>"showAcknowledgeStatus(event, #{alert.id}, #{alert.get_default_acknowledge_time()});"} - Urgent - - elsif "normal" == level - .levelNormal - %a{:href=>"javascript:", :onClick=>"showAcknowledgeStatus(event, #{alert.id}, #{alert.get_default_acknowledge_time()});"} - Normal - -else - .levelLow - %a{:href=>"javascript:", :onClick=>"showAcknowledgeStatus(event, #{alert.id}, #{alert.get_default_acknowledge_time()});"} - Low - .subject= alert.get_safe_html_subject - .summary= alert.get_safe_html_summary - %a{:href=>"/alert/#{alert.id}"} - History - //%a{:href=>"javascript:", :onClick=>"$(furtherInformation#{alert.id}).toggle();"} - %a{:href=>"javascript:", :onClick=>"$(\"#furtherInformation#{alert.id}.furtherInformation\").toggle();"} - Extra - //%a{:href=>"javascript:", :onClick=>"$(inlineDetails#{alert.id}).toggle();"} - %a{:href=>"javascript:", :onClick=>"$(\"#inlineDetails#{alert.id}.inlineDetails\").toggle();"} - Details - .inlineDetails{:id=>"inlineDetails#{alert.id}", :style=>"display: none"} - %h5 Alert details - #{alert.get_details} - //.furtherInformation{:id=>"furtherInformation#{alert.id}"} - .furtherInformation{:id=>"furtherInformation#{alert.id}", :style=>"display: none"} - Alert group is '#{AlertGroup.matches(alert)[0].name}'. - - if alert.source != alert.subject - .source= "Source is '#{alert.get_safe_html_source}'." - - if alert.acknowledged? - .ackDetails - Acknowledged by user - %strong= "#{alert.get_acknowledged_by()} " - and will #{alert.get_unacknowledge_at_string()}. - - else - .time - Last updated on - %em= "#{alert.get_updated_at()}." - |