<%=l(:label_issue_plural)%>

<% form_tag({}, :id => 'query_form') do %> <%= render :partial => 'queries/filters', :locals => {:query => @query} %> <% end %>
<%= link_to_remote l(:button_apply), { :url => { :set_filter => 1 }, :update => "content", :with => "Form.serialize('query_form')" }, :class => 'icon icon-edit' %> <%= link_to_remote l(:button_clear), { :url => { :set_filter => 1 }, :update => "content", }, :class => 'icon icon-reload' %>

  <%= error_messages_for 'query' %> <% if @query.valid? %> <% if @issues.empty? %>

<%= l(:label_no_data) %>

<% else %>   <%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %> <%= sort_header_tag("#{Project.table_name}.name", :caption => l(:field_project)) %> <%= sort_header_tag("#{Issue.table_name}.tracker_id", :caption => l(:field_tracker)) %> <%= sort_header_tag("#{IssueStatus.table_name}.name", :caption => l(:field_status)) %> <%= sort_header_tag("#{Issue.table_name}.priority_id", :caption => l(:field_priority)) %> <%= sort_header_tag("#{User.table_name}.lastname", :caption => l(:field_assigned_to)) %> <%= sort_header_tag("#{Issue.table_name}.updated_on", :caption => l(:field_updated_on)) %> <% for issue in @issues %> "> <% end %>
<%=l(:field_subject)%>
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %> <%=h issue.project.name %> <%= issue.tracker.name %>
<%= issue.status.name %>
<%= issue.priority.name %> <%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %> <%= issue.assigned_to.name if issue.assigned_to %> <%= format_time(issue.updated_on) %>

<%= pagination_links_full @issue_pages %> [ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]

<% end %> <% end %>