aboutsummaryrefslogtreecommitdiff
path: root/views/_events_calendar_day.haml
blob: fa0c5173c641e3d9eba2db4146791b6c337e7801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%td{:class => (@today.month % 2 == 0 ? "even" : "odd")}
  %p.event_date
    %a{:href => "/events/list/#{@today.strftime("%F")}?#{request.query_string}"}
      = @today.strftime(((@today - 1).month != @today.month) ? "%d %b" : "%d")
  =partial("history", :collection => events_calendar_day.last(10).to_a.reverse)
  %p
    - n_events = events_calendar_day.count
    - if n_events > 10
      There are
      = n_events - 10
      more events to display.
    - if n_events > 0
      %a{:href => "/events/list/#{@today.strftime("%F")}?#{request.query_string}"}
        Show the whole day.
  - @today += 1