_sidebar.rhtml
26 lines
| 1.3 KiB
| text/html+ruby
|
RhtmlLexer
|
r736 | <h3><%= l(:label_issue_plural) %></h3> | ||
|
r924 | <%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %><br /> | ||
|
r1297 | <% if @project %> | ||
|
r736 | <%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br /> | ||
|
r2091 | <%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %><br /> | ||
|
r2086 | <% end %> | ||
|
r2091 | <%= call_hook(:view_issues_sidebar_issues_bottom) %> | ||
|
r1795 | |||
<% planning_links = [] | ||||
|
r2521 | planning_links << link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true) | ||
planning_links << link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project) if User.current.allowed_to?(:view_gantt, @project, :global => true) | ||||
|
r2086 | %> | ||
<% unless planning_links.empty? %> | ||||
|
r1795 | <h3><%= l(:label_planning) %></h3> | ||
<p><%= planning_links.join(' | ') %></p> | ||||
|
r2091 | <%= call_hook(:view_issues_sidebar_planning_bottom) %> | ||
|
r1795 | <% end %> | ||
|
r1296 | <% unless sidebar_queries.empty? -%> | ||
|
r736 | <h3><%= l(:label_query_plural) %></h3> | ||
|
r1296 | <% sidebar_queries.each do |query| -%> | ||
|
r2167 | <%= link_to(h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query) %><br /> | ||
|
r1296 | <% end -%> | ||
|
r2091 | <%= call_hook(:view_issues_sidebar_queries_bottom) %> | ||
|
r1296 | <% end -%> | ||