aboutsummaryrefslogtreecommitdiff
path: root/views/alert.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/alert.haml')
-rw-r--r--views/alert.haml5
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"}