From 3af526a34a0d53cde184134b68f2c241efe92483 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 15 Jun 2011 21:19:06 +0100 Subject: * Alert detail now has default message. * It is now interpreted as textile. --- views/_alerts_table_alert_detail.haml | 3 ++- views/alert.haml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/_alerts_table_alert_detail.haml b/views/_alerts_table_alert_detail.haml index 73185c6..b5ada45 100644 --- a/views/_alerts_table_alert_detail.haml +++ b/views/_alerts_table_alert_detail.haml @@ -2,7 +2,8 @@ %td   %td{:colspan => 2} .detail - = alert.detail + :textile + #{alert.detail} %address - if alert.raised? or alert.acknowledged? Raised at #{alert.raised_at.to_s_human} • diff --git a/views/alert.haml b/views/alert.haml index 41de29a..0486770 100644 --- a/views/alert.haml +++ b/views/alert.haml @@ -17,7 +17,9 @@ %td= @alert.source %tr %th{:title => "HTML fragment describing the alert in more detail, no limit on length."} Detail - %td= @alert.detail + %td + :textile + #{@alert.detail} %tr %th{:title => "ID set by the source of the alert."} Alert ID %td= @alert.alert_id -- cgit v1.2.1