<%= link_to I18n.t('simple_calendar.previous', :default => "Previous"), calendar.url_for_previous_view %> <%= I18n.t("date.month_names")[start_date.month] %> <%= start_date.year %> <%= link_to I18n.t('simple_calendar.next', :default => "Next"), calendar.url_for_next_view %> <% 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 %> <% if defined?(Haml) && respond_to?(:block_is_haml?) && block_is_haml?(block) %> <% capture_haml(day, sorted_events.fetch(day, []), &block) %> <% else %> <% block.call day, sorted_events.fetch(day, []) %> <% end %> <% end %> <% end %> <% end %>
<%= I18n.t("date.abbr_day_names")[day.wday] %>