mirror of
https://github.com/redmine/redmine.git
synced 2024-08-25 17:55:20 +02:00
Adds controller to urls in case the side bar is called from another controller (#2960).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2589 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7a3822448b
commit
9f45499936
@ -7,8 +7,8 @@
|
||||
<%= call_hook(:view_issues_sidebar_issues_bottom) %>
|
||||
|
||||
<% planning_links = []
|
||||
planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
|
||||
planning_links << link_to(l(:label_gantt), :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
|
||||
planning_links << link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
|
||||
planning_links << link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
|
||||
%>
|
||||
<% unless planning_links.empty? %>
|
||||
<h3><%= l(:label_planning) %></h3>
|
||||
|
Loading…
Reference in New Issue
Block a user