diff --git a/app/views/issues/_sidebar.rhtml b/app/views/issues/_sidebar.rhtml index 076091fb..2296cc8e 100644 --- a/app/views/issues/_sidebar.rhtml +++ b/app/views/issues/_sidebar.rhtml @@ -5,15 +5,13 @@ <% end %> <%= call_hook(:view_issues_sidebar_issues_bottom) %> -<% planning_links = [] - 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? %> -
<%= planning_links.join(' | ') %>
-<%= call_hook(:view_issues_sidebar_planning_bottom) %> +<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> + <%= link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) %><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
++ <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %> + <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> + | <%= link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) %> + <% end %> + <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> + | <%= link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) %> + <% end %> +
<% end %> <%= call_hook(:view_projects_show_left, :project => @project) %> @@ -55,15 +63,6 @@ <% content_for :sidebar do %> - <% planning_links = [] - planning_links << link_to_if_authorized(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) - planning_links << link_to_if_authorized(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) - planning_links.compact! - unless planning_links.empty? %> -<%= planning_links.join(' | ') %>
- <% end %> - <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %><%= l_hours(@total_hours) %>