<%=l(:label_report_plural)%>
<%= link_to_if_authorized l(:label_query_new), {:controller => 'projects', :action => 'add_query', :id => @project}, :class => 'icon icon-add' %>
<%= l(:label_query_plural) %>
<% if @queries.empty? %>
<%=l(:label_no_data)%>
<% end %>
<% @queries.each do |query| %>
- <%= link_to query.name, :controller => 'projects', :action => 'list_issues', :id => @project, :query_id => query %>
<% end %>
<% if @total_hours %>
<%= l(:label_spent_time) %>:
<%= link_to(lwr(:label_f_hour, @total_hours), {:controller => 'timelog', :action => 'details', :project_id => @project}, :class => 'icon icon-time') %>
<% end %>
<%=l(:field_tracker)%> <%= link_to image_tag('zoom_in.png'), :detail => 'tracker' %>
<%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %>
<%=l(:field_author)%> <%= link_to image_tag('zoom_in.png'), :detail => 'author' %>
<%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %>
<%=l(:field_priority)%> <%= link_to image_tag('zoom_in.png'), :detail => 'priority' %>
<%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %>
<% if @project.children.any? %>
<%=l(:field_subproject)%> <%= link_to image_tag('zoom_in.png'), :detail => 'subproject' %>
<%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %>
<% end %>
<%=l(:field_category)%> <%= link_to image_tag('zoom_in.png'), :detail => 'category' %>
<%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %>