Sha256: 878c6cd7a005e999a2e0ebe28abb5cea0e710a549b16992eb4575d29f152384d
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
<div class="simple-calendar"> <%= link_to "Previous", calendar.url_for_previous_view %> <%= I18n.t("date.month_names")[start_date.month] %> <%= start_date.year %> <%= link_to "Next", calendar.url_for_next_view %> <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 %> <% if defined?(Haml) && respond_to?(:block_is_haml?) && block_is_haml?(block) %> <% capture_haml do %> <% block.call day, sorted_events.fetch(day, []) %> <% end %> <% else %> <% block.call day, sorted_events.fetch(day, []) %> <% end %> <% end %> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
4 entries across 2 versions & 1 rubygems