207 |
207 |
:caption => :label_project_plural
|
208 |
208 |
menu.push :activity, {:controller => 'activities', :action => 'index'}
|
209 |
209 |
menu.push :issues, {:controller => 'issues', :action => 'index'},
|
210 |
|
:if => Proc.new {User.current.allowed_to?(:view_issues, nil, :global => true)},
|
|
210 |
:if => Proc.new {User.current.allowed_to?(:view_issues, nil, :global => true) && EnabledModule.exists?(:project => Project.visible, :name => :issue_tracking)},
|
211 |
211 |
:caption => :label_issue_plural
|
212 |
212 |
menu.push :time_entries, {:controller => 'timelog', :action => 'index'},
|
213 |
|
:if => Proc.new {User.current.allowed_to?(:view_time_entries, nil, :global => true)},
|
|
213 |
:if => Proc.new {User.current.allowed_to?(:view_time_entries, nil, :global => true) && EnabledModule.exists?(:project => Project.visible, :name => :time_tracking)},
|
214 |
214 |
:caption => :label_spent_time
|
215 |
215 |
menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :caption => :label_gantt,
|
216 |
|
:if => Proc.new {User.current.allowed_to?(:view_gantt, nil, :global => true)}
|
|
216 |
:if => Proc.new {User.current.allowed_to?(:view_gantt, nil, :global => true) && EnabledModule.exists?(:project => Project.visible, :name => :gantt)}
|
217 |
217 |
menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :caption => :label_calendar,
|
218 |
|
:if => Proc.new {User.current.allowed_to?(:view_calendar, nil, :global => true)}
|
|
218 |
:if => Proc.new {User.current.allowed_to?(:view_calendar, nil, :global => true) && EnabledModule.exists?(:project => Project.visible, :name => :calendar)}
|
219 |
219 |
menu.push :news, {:controller => 'news', :action => 'index'},
|
220 |
|
:if => Proc.new {User.current.allowed_to?(:view_news, nil, :global => true)},
|
|
220 |
:if => Proc.new {User.current.allowed_to?(:view_news, nil, :global => true) && EnabledModule.exists?(:project => Project.visible, :name => :news)},
|
221 |
221 |
:caption => :label_news_plural
|
222 |
222 |
end
|
223 |
223 |
|