diff options
Diffstat (limited to 'views/_alert_history.haml')
-rw-r--r-- | views/_alert_history.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/_alert_history.haml b/views/_alert_history.haml new file mode 100644 index 0000000..fbacda6 --- /dev/null +++ b/views/_alert_history.haml @@ -0,0 +1,7 @@ +%p + = history.created_at.strftime("%R") + - these_alerts = (@alerts.nil? ? history.alerts : @alerts.select{|a| history.alert_ids.include?(a.id)}) + - these_alerts.each do |alert| + = alert.subject + = alert.summary + = history.event |