app/views/store/events/_calendar.html.haml in artfully_ose-1.2.0.beta.1 vs app/views/store/events/_calendar.html.haml in artfully_ose-1.2.0.pre
- old
+ new
@@ -1,5 +1,8 @@
--@dates_by_month.each do |month, dates|
+- dates = @event.upcoming_public_shows.collect(&:datetime_local_to_event).reject {|d| d < Time.zone.now }.map {|d| d.to_date}
+- dates_by_month = dates.group_by {|d| d.strftime("%B %Y")}
+
+-dates_by_month.each do |month, dates|
.calendar-month
%h3
= month
%table.calendar{:align => "center"}
- (dates.first.beginning_of_month.to_date..dates.first.end_of_month.to_date).each do |date|
\ No newline at end of file