2007-09-22 17:17:49 +04:00
|
|
|
<h3><%= l(:label_issue_plural) %></h3>
|
2007-11-29 23:14:01 +03:00
|
|
|
<%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %><br />
|
2008-03-30 18:20:07 +04:00
|
|
|
<% if @project %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br />
|
2008-12-06 03:51:03 +03:00
|
|
|
<%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %><br />
|
2008-12-05 18:41:32 +03:00
|
|
|
<% end %>
|
2008-12-06 03:51:03 +03:00
|
|
|
<%= call_hook(:view_issues_sidebar_issues_bottom) %>
|
2008-09-10 22:26:13 +04:00
|
|
|
|
|
|
|
<% planning_links = []
|
2008-12-05 18:41:32 +03:00
|
|
|
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? %>
|
2008-09-10 22:26:13 +04:00
|
|
|
<h3><%= l(:label_planning) %></h3>
|
|
|
|
<p><%= planning_links.join(' | ') %></p>
|
2008-12-06 03:51:03 +03:00
|
|
|
<%= call_hook(:view_issues_sidebar_planning_bottom) %>
|
2008-09-10 22:26:13 +04:00
|
|
|
<% end %>
|
|
|
|
|
2008-03-30 16:29:07 +04:00
|
|
|
<% unless sidebar_queries.empty? -%>
|
2007-09-22 17:17:49 +04:00
|
|
|
<h3><%= l(:label_query_plural) %></h3>
|
|
|
|
|
2008-03-30 16:29:07 +04:00
|
|
|
<% sidebar_queries.each do |query| -%>
|
2008-09-17 21:23:08 +04:00
|
|
|
<%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %><br />
|
2008-03-30 16:29:07 +04:00
|
|
|
<% end -%>
|
2008-12-06 03:51:03 +03:00
|
|
|
<%= call_hook(:view_issues_sidebar_queries_bottom) %>
|
2008-03-30 16:29:07 +04:00
|
|
|
<% end -%>
|