summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/show.rhtml9
1 files 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? %>
<h3>Planning</h3>
- <p><%= link_to_if_authorized l(:label_calendar), :action => 'calendar', :id => @project %> |
- <%= link_to_if_authorized l(:label_gantt), :action => 'gantt', :id => @project %></p>
+ <p><%= planning_links.join(' | ') %></p>
+ <% end %>
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
<h3><%= l(:label_spent_time) %></h3>