aboutsummaryrefslogtreecommitdiff
path: root/views/alert.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 14:52:24 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 14:52:24 +0000
commite92e81943165dce60cdd9b2cf8ebdc1c55acc7fb (patch)
tree39df1adae252c9195fa3a1ea39dd4fe7ce71e861 /views/alert.haml
parent044d34c09f446cfca04e8ff1c53a3c5435cf77d8 (diff)
Updated acknowledge form to allow more things to be done.
--HG-- rename : views/_acknowledge_input.haml => views/_alert_actions.haml
Diffstat (limited to 'views/alert.haml')
-rw-r--r--views/alert.haml19
1 files changed, 3 insertions, 16 deletions
diff --git a/views/alert.haml b/views/alert.haml
index 6aa2e23..ef8d0f6 100644
--- a/views/alert.haml
+++ b/views/alert.haml
@@ -1,4 +1,4 @@
-%h1 Alert detail
+%h2 Alert detail
%table
%tr
%th.summary{:title => "Text for humans describing the nature of the alert, first 100 characters are only ones guaranteed to make it to pagers, twitter, SMS etc."} Summary
@@ -60,19 +60,6 @@
%a{:href => "/events/alert/#{@alert.id}"}
View full event history
%h2 Actions
-- if !@alert.acknowledged?
- %form{:method => :post, :action => "/alert/#{@alert.id}/acknowledge"}
- =partial("acknowledge_input")
-- else
- %form.hidden{:method => :post, :action => "/alert/#{@alert.id}/unacknowledge"}
- %input{:type => :submit, :value => "Unacknowledge this alert"}
-%a#hide{:onclick => "$('form.hidden').toggle(); return false", :href=>"#"} Show other actions
-- if @alert.cleared?
- %form.hidden{:method => :post, :action => "/alert/#{@alert.id}/raise"}
- %input{:type => :submit, :value => "Raise this alert"}
-- if @alert.raised?
- %form.hidden{:method => :post, :action => "/alert/#{@alert.id}/clear"}
- %input{:type => :submit, :value => "Clear this alert"}
-%form.hidden{:method => :post, :action => "/alert/#{@alert.id}/destroy"}
- %input{:type => :submit, :value => "Destroy this alert"}
+%form{:method => :post, :action => "/alert/#{@alert.id}"}
+ =partial("alert_actions")