diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-24 12:26:56 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-24 12:26:56 +0100 |
commit | 71f395243d5cb7e2de918908f5c80b4ece37f58f (patch) | |
tree | 543d7928e830c1d8d765be4512f2afd81fed72c1 /views/alert.haml | |
parent | 1a636d2c97368bc4c4019f4ddcff991ec5eccbce (diff) |
Added XMPP interface. Fixes #1301
Also tidied calendar a bit
Diffstat (limited to 'views/alert.haml')
-rw-r--r-- | views/alert.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/alert.haml b/views/alert.haml index 30aeb86..220f871 100644 --- a/views/alert.haml +++ b/views/alert.haml @@ -47,11 +47,14 @@ %th History %td %ul#histories - - @alert.histories.first(10).each do |history| + - @alert.histories.all(:created_at.gte => Time.now - 3.days).each do |history| %li = history.event at = (history.created_at.nil? ? "unkown" : history.created_at.to_s_human) + %p + %a{:href => "/events/alert/#{@alert.id}"} + View full event history %h2 Actions - if !@alert.acknowledged? %form{:method => :post, :action => "/alert/#{@alert.id}/acknowledge"} |