##// END OF EJS Templates
Fixed: Planning title displayed in the project sidebar even if there is no link below....
Jean-Philippe Lang -
r743:9a360bd57468
parent child
Show More
@@ -61,9 +61,14
61 <%= l(:label_tracker) %>: <%= new_issue_selector %>
61 <%= l(:label_tracker) %>: <%= new_issue_selector %>
62 <% end %>
62 <% end %>
63
63
64 <% planning_links = []
65 planning_links << link_to_if_authorized(l(:label_calendar), :action => 'calendar', :id => @project)
66 planning_links << link_to_if_authorized(l(:label_gantt), :action => 'gantt', :id => @project)
67 planning_links.compact!
68 unless planning_links.empty? %>
64 <h3>Planning</h3>
69 <h3>Planning</h3>
65 <p><%= link_to_if_authorized l(:label_calendar), :action => 'calendar', :id => @project %> |
70 <p><%= planning_links.join(' | ') %></p>
66 <%= link_to_if_authorized l(:label_gantt), :action => 'gantt', :id => @project %></p>
71 <% end %>
67
72
68 <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
73 <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
69 <h3><%= l(:label_spent_time) %></h3>
74 <h3><%= l(:label_spent_time) %></h3>
General Comments 0
You need to be logged in to leave comments. Login now