Sha256: cee2d1b42702396aeaebc42275438b9133b42ef920f196c677786edd9e44eb59
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
<div class="simple-calendar"> <%= link_to "Previous", start_date: date_range.first - 1.day %> <%= I18n.t("date.month_names")[start_date.month] %> <%= start_date.year %> <%= link_to "Next", start_date: date_range.last + 1.day %> <table class="table table-striped"> <thead> <tr> <% date_range.slice(0, 7).each do |day| %> <th><%= I18n.t("date.abbr_day_names")[day.wday] %></th> <% end %> </tr> </thead> <tbody> <% date_range.each_slice(7) do |week| %> <tr> <% week.each do |day| %> <%= content_tag :td, class: calendar.td_classes_for(day) do %> <%= block.call day, sorted_events.fetch(day, []) %> <% end %> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_calendar-2.0.0 | app/views/simple_calendar/_calendar.html.erb |
simple_calendar-2.0.0 | app/views/simple_calendar/_month_calendar.html.erb |