<% date_range.slice(0, 7).each do |day| %> <% end %> <% date_range.each_slice(7) do |week| %> <% week.each do |day| %> <%= content_tag :td, class: calendar.td_classes_for(day) do %> <% instance_exec(day, calendar.sorted_events_for(day), &passed_block) %> <% end %> <% end %> <% end %>
<%= t('date.abbr_day_names')[day.wday] %>