aboutsummaryrefslogtreecommitdiff
path: root/views/_history.haml
blob: 61bcf59adff807c824c239b64dd7cbb54212d085 (plain)
1
2
3
4
5
6
7
8
9
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