aboutsummaryrefslogtreecommitdiff
path: root/views/alert.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-08 17:24:08 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-08 17:24:08 +0100
commit1ac431fa21907a2a95d87901825cff3dc462746b (patch)
treebee0d55b3fb936bdd77095cdb32970379f4c82d0 /views/alert.haml
parentfdfd98e5117b269d1f30dfbbd9c1cf2cf037658a (diff)
Added first basic history functionality, and rejigged when notify is called for
an alert.
Diffstat (limited to 'views/alert.haml')
-rw-r--r--views/alert.haml10
1 files changed, 9 insertions, 1 deletions
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"}