diff options
Diffstat (limited to 'views/_history.haml')
-rw-r--r-- | views/_history.haml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/_history.haml b/views/_history.haml new file mode 100644 index 0000000..61bcf59 --- /dev/null +++ b/views/_history.haml @@ -0,0 +1,10 @@ +- if @today.nil? or %w(day month year).any?{|s| @today.send(s) != history.created_at.send(s)} + %h2 + = history.created_at.strftime("%a %d %b %Y") +%p + = history.created_at.strftime("%R") + - history.alerts.each do |alert| + = alert.subject + = alert.summary + = history.event + - @today = history.created_at |