Cross-project gantt and calendar (#1157).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2088 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1b4f0c38ce
commit
50794b08a9
4 files changed
+40
-17
No files matched your search
@@ -3,16 +3,15 @@
|
||||
<% if @project %>
|
||||
<%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br />
|
||||
<%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
|
||||
|
||||
<% planning_links = []
|
||||
planning_links << link_to_if_authorized(l(:label_calendar), :action => 'calendar', :project_id => @project)
|
||||
planning_links << link_to_if_authorized(l(:label_gantt), :action => 'gantt', :project_id => @project)
|
||||
planning_links.compact!
|
||||
unless planning_links.empty? %>
|
||||
<h3><%= l(:label_planning) %></h3>
|
||||
<p><%= planning_links.join(' | ') %></p>
|
||||
<% end %>
|
||||
|
||||
<% planning_links = []
|
||||
planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)
|
||||
planning_links << link_to(l(:label_gantt), :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true)
|
||||
%>
|
||||
<% unless planning_links.empty? %>
|
||||
<h3><%= l(:label_planning) %></h3>
|
||||
<p><%= planning_links.join(' | ') %></p>
|
||||
<% end %>
|
||||
|
||||
<% unless sidebar_queries.empty? -%>
|
||||
|
||||
Reference in new issue
Block a user