blob: 1b42520d488ec18eaf8cc4bbc2cc4bc5d2c35a4c (
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("%F")}?#{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("%F")}?#{request.query_string}"}
Show the whole day.
- @today += 1.day
|