aboutsummaryrefslogtreecommitdiff
path: root/views/_history.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-05-01 14:32:37 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-05-01 14:32:37 +0100
commit9f6bee75108f08463516bce554b76faf56e2122f (patch)
treedf069c4833125267665f79f7cf6b8d72102bdc37 /views/_history.haml
parentfafac666b1d9f1b73fe4330af6b3c14d57ded2cb (diff)
Updated history partial to be better.
Diffstat (limited to 'views/_history.haml')
-rw-r--r--views/_history.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/_history.haml b/views/_history.haml
index 61bcf59..03d02d7 100644
--- a/views/_history.haml
+++ b/views/_history.haml
@@ -4,7 +4,12 @@
%p
= history.created_at.strftime("%R")
- history.alerts.each do |alert|
- = alert.subject
+ %a{ :href => url_for(alert) }
+ = alert.id
+ %strong
+ = alert.subject
= alert.summary
+ - if alert.source != alert.subject
+ = "-- from #{alert.source}
= history.event
- @today = history.created_at