Actions
Feature #14596
closedChange the week days to month days in Gantt view
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Description
so we can easily find out the date in Gantt view.
Files
Related issues
Updated by Junhua Wang over 10 years ago
Index: /home/tattoo/workspace/redmine/app/views/gantts/show.html.erb =================================================================== --- /home/tattoo/workspace/redmine/app/views/gantts/show.html.erb (版本 12072) +++ /home/tattoo/workspace/redmine/app/views/gantts/show.html.erb (工作副本) @@ -237,6 +237,9 @@ left = 0 height = g_height + header_height - 1 wday = @gantt.date_from.cwday + + month_f = @gantt.date_from + mday = month_f.day %> <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> <% @@ -251,12 +254,18 @@ clss << " nwday" if @gantt.non_working_week_days.include?(wday) %> <%= content_tag(:div, :style => style, :class => clss) do %> - <%= day_letter(wday) %> + <%= mday %> <!--%= day_letter(wday) % modified by tattoo--> <% end %> <% left = left + width + 1 wday = wday + 1 wday = 1 if wday > 7 + + mday += 1 + if mday > Date.new(month_f.year, month_f.month, -1).day + mday = 1 + month_f = month_f >> 1 + end %> <% end %> <% end %>
Updated by Mischa The Evil over 10 years ago
Junhua Wang wrote:
so we can easily find out the date in Gantt view.
I agree, that is currently pretty tough. Nevertheless, some users would probably still want to have the days displayed with the first letter of the day...
Updated by Go MAEDA over 9 years ago
- Related to Feature #3034: Add day numbers to gantt added
Updated by Go MAEDA over 8 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Day number in gantt has been implemented by #3034.
Please wait for the release of Redmine 3.2.0.
Actions