blob: 9682b5628e38ea7ee59dd7a71b033051df387ae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
%td{:class => (@today.month % 2 == 0 ? "even" : "odd")}
%p.event_date
%a{:href => "/events/list/#{@today.strftime("%Y-%m-%d")}?#{request.query_string}"}
= @today.strftime(((@today - 1.day).month != @today.month) ? "%d %b" : "%d")
=partial("history", :collection => events_calendar_day.first(10))
%p
- if events_calendar_day.length > 10
There are
= events_calendar_day.length - 10
more events to display.
- if events_calendar_day.length > 0
%a{:href => "/events/list/#{@today.strftime("%Y-%m-%d")}?#{request.query_string}"}
Show the whole day.
- @today += 1.day
|