From 1ac431fa21907a2a95d87901825cff3dc462746b Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 8 Jul 2011 17:24:08 +0100 Subject: Added first basic history functionality, and rejigged when notify is called for an alert. --- views/alert.haml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/alert.haml b/views/alert.haml index b752f35..7e7503f 100644 --- a/views/alert.haml +++ b/views/alert.haml @@ -56,7 +56,15 @@ = change.person at = change.at.to_s_human - + %tr + %th History + %td + %ul + - @alert.histories.each do |history| + %li + = history.event + at + = (history.created_at.nil? ? "unkown" : history.created_at.to_s_human) %h2 Actions - if !@alert.acknowledged? %form{:method => :post, :action => "/alert/#{@alert.id}/acknowledge"} -- cgit v1.2.1