Sha256: 05b0f0b779bbcc6d32ab59af548718a1c06649923edf64a555b9518ebf640b17
Contents?: true
Size: 709 Bytes
Versions: 17
Compression:
Stored size: 709 Bytes
Contents
-@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| = "<tr>".html_safe if date == dates.first.beginning_of_month.to_date || date.wday == 0 = Array.new(date.wday, "<td class='filler'></td>").join('').html_safe if date == dates.first.beginning_of_month.to_date && dates.first.beginning_of_month.to_date.wday != 0 = "<td class='#{dates.include?(date) ? "has_show" : ""}' data-date='#{date.strftime('%D')}'>#{date.strftime('%e')}</td>".html_safe = "</tr>".html_safe if date.cwday == 6 %div{:style => 'clear:both'}
Version data entries
17 entries across 17 versions & 1 rubygems