aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table_alert_detail.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:47:24 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:47:24 +0100
commitfc0327f91fb134e1df994143a78c22df7d8f62e4 (patch)
tree9fb1161dbdece4428e6c65b1d555a67c7908fa9e /views/_alerts_table_alert_detail.haml
parent3576923edf788eecb4320e034f5afaaf625bd62e (diff)
Big interface clear up
Diffstat (limited to 'views/_alerts_table_alert_detail.haml')
-rw-r--r--views/_alerts_table_alert_detail.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/_alerts_table_alert_detail.haml b/views/_alerts_table_alert_detail.haml
new file mode 100644
index 0000000..73185c6
--- /dev/null
+++ b/views/_alerts_table_alert_detail.haml
@@ -0,0 +1,14 @@
+%tr{:class => %w(detail) + row_class, :id => ["tr", "detail", alert.id] }
+ %td &nbsp;
+ %td{:colspan => 2}
+ .detail
+ = alert.detail
+ %address
+ - if alert.raised? or alert.acknowledged?
+ Raised at #{alert.raised_at.to_s_human} &bull;
+ - if alert.acknowledged?
+ Ack'd at #{alert.acknowledged_at.to_s_human} by #{alert.acknowledged_by} &bull;
+ Source: #{alert.source} &bull;
+ %a{ :href => "/alert/#{alert.id}" } More details
+ &bull;
+ %a{ :href => "#", :onclick => "$('#tr_detail_#{alert.id}').hide(); return false;"} Hide details