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-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
|
|
|
|
2009-12-18 23:15:49 +03:00
|
|
|
<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
|
|
|
<%= link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) %><br />
|
|
|
|
<% end %>
|
|
|
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
|
|
|
<%= link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) %><br />
|
2008-09-10 22:26:13 +04:00
|
|
|
<% end %>
|
2009-12-18 23:15:49 +03:00
|
|
|
<%= call_hook(:view_issues_sidebar_planning_bottom) %>
|
2008-09-10 22:26:13 +04:00
|
|
|
|
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-12-23 03:19:15 +03:00
|
|
|
<%= link_to(h(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 -%>
|