From 495780ac5299b26009bea86319f44301bd301db1 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 21 Mar 2012 19:10:11 +0000 Subject: Possible performance improvements. --- views/alert.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views') 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 -- cgit v1.2.1