use start of week not month
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
%tr
|
||||
- (0...@weeks).each do |week|
|
||||
%td{colspan: 7 , class: bg_for(week + 2) }
|
||||
= small_date(Date.today.at_beginning_of_month + week.weeks)
|
||||
= small_date(start_day + week.weeks)
|
||||
%tr
|
||||
- weekly.each_with_index do |amount , week |
|
||||
%td{colspan: 7, class: bg_for(week + 2) , style: "width: #{week_pixels}px;"}= amount
|
||||
|
Reference in New Issue
Block a user