From 9a360bd5746825fe66b3d47e987aebfe2e51615d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Sep 2007 22:00:21 +0000 Subject: [PATCH] Fixed: Planning title displayed in the project sidebar even if there is no link below. git-svn-id: http://redmine.rubyforge.org/svn/trunk@754 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/show.rhtml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index 8d6c0c9a4..6671af1ca 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -61,9 +61,14 @@ <%= l(:label_tracker) %>: <%= new_issue_selector %> <% end %> + <% planning_links = [] + planning_links << link_to_if_authorized(l(:label_calendar), :action => 'calendar', :id => @project) + planning_links << link_to_if_authorized(l(:label_gantt), :action => 'gantt', :id => @project) + planning_links.compact! + unless planning_links.empty? %>

Planning

-

<%= link_to_if_authorized l(:label_calendar), :action => 'calendar', :id => @project %> | - <%= link_to_if_authorized l(:label_gantt), :action => 'gantt', :id => @project %>

+

<%= planning_links.join(' | ') %>

+ <% end %> <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>

<%= l(:label_spent_time) %>

-- 2.39.5