Project

General

Profile

« Previous | Next » 

Revision 2589

Adds controller to urls in case the side bar is called from another controller (#2960).

View differences:

trunk/app/views/issues/_sidebar.rhtml
7 7
<%= call_hook(:view_issues_sidebar_issues_bottom) %>
8 8

  
9 9
<% planning_links = []
10
  planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
11
  planning_links << link_to(l(:label_gantt), :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
10
  planning_links << link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
11
  planning_links << link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
12 12
%>
13 13
<% unless planning_links.empty? %>
14 14
<h3><%= l(:label_planning) %></h3>

Also available in: Unified diff