aboutsummaryrefslogtreecommitdiff
path: root/views/alert.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-03-21 19:10:11 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-03-21 19:10:11 +0000
commit495780ac5299b26009bea86319f44301bd301db1 (patch)
treea9a2bbd4f3e799c8a26f84b05d84bee6fecfdcbc /views/alert.haml
parent56cb1ef45e0cae7336fcbe83994addcae61f429b (diff)
Possible performance improvements.
Diffstat (limited to 'views/alert.haml')
-rw-r--r--views/alert.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/alert.haml b/views/alert.haml
index 220f871..b16047a 100644
--- a/views/alert.haml
+++ b/views/alert.haml
@@ -18,8 +18,8 @@
%th{:title => "ID set by the source of the alert."} Alert ID
%td= @alert.alert_id
%tr
- %th{:title => "The groups in the Mauve server configuration that match this alert"} Alert groups
- %td= Mauve::AlertGroup.matches(@alert).map{|g| g.name}.join("; ")
+ %th{:title => "The group in the Mauve server configuration that match this alert"} Alert groups
+ %td= @alert.alert_group
%tr
%th{:title => "The level of the first group in the Mauve server configuration that matched this alert"} Alert level
%td= @alert.level.to_s.upcase