use start of week not month

This commit is contained in:
Torsten
2023-08-27 22:58:33 +03:00
parent c444b649f4
commit 417644e764
3 changed files with 10 additions and 7 deletions

View File

@ -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