Allow collapse/expand in Gantt chart
Added by Artem Tykhonov over 12 years ago
Hi, all!
I would like to implement the feature described in Feature #6417
I'm new to Redmine and ruby and rails development, so for me it's difficult to understand how the Gantt chart is rendered.
All I've found that rendering of
<div class="gantt_subjects">
is provided by one line in gantts_controller.rb:
<%= @gantt.subjects %>
But I can't understand what this line does "in deep", and how I can change it behavior.
Has anybody tried to implement this feature?
Could somebody points me in the right direction or gives me an advice?
I would be grateful for any help in solving this problem.
Replies (4)
RE: Allow collapse/expand in Gantt chart
-
Added by Etienne Massip over 12 years ago
@gantt
instance variable is set in GanttController#show
at source:/trunk/app/controllers/gantts_controller.rb#L33 to a new GanttHelper
which implements the method you're looking for at source:/trunk/lib/redmine/helpers/gantt.rb#L121.
RE: Allow collapse/expand in Gantt chart
-
Added by Artem Tykhonov over 12 years ago
So, I should change the behavior of subjects method?
RE: Allow collapse/expand in Gantt chart
-
Added by Etienne Massip over 12 years ago
Of the #render
method, sure.