<%= form_tag({}) do -%> <%= hidden_field_tag 'back_url', url_for(params) %> <%= hidden_field_tag 'project_id', @project.id if @project %> <% previous_group = false %> <% @issues.each do |issue| %> <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> <% reset_cycle %> <% previous_group = group %> <% end %> <% if Setting.gravatar_enabled? %> <% end %> <% end %>
  <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> (<%= @issue_count_by_group[group] %>) <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
<%= check_box_tag("ids[]", issue.id, false, :id => nil) %> <% if issue.customer %> <%= link_to avatar_to(issue.customer, :size => "32"), {:controller => 'contacts', :action => 'show', :project_id => @project, :id => issue.customer.id}, :id => "avatar" %> <% else %> <%= avatar(issue.author, :size => "32x32", :height => 32, :width => 32) %> <% end %>

<%= link_to "#{issue.subject}", {:controller => :issues, :action => :show, :id => issue.id} %> #<%= issue.id %>

<%= issue.description.gsub("(\n|\r)", "").strip.truncate(100) unless issue.description.blank? %>

<%= issue.customer ? "#{content_tag('span', '', :class => "icon icon-email", :title => l(:label_note_type_email))} #{l(:label_helpdesk_from)}: #{link_to_source(issue.customer)}, ".html_safe : "#{l(:label_helpdesk_from)}: #{link_to_user issue.author}, ".html_safe %> <%= l(:label_updated_time, time_tag(issue.updated_on)).html_safe %>

<%= content_tag(:span, issue.status.name, :class => "deal-status ticket-status tags status-#{issue.status.id}") %> <% if issue.assigned_to %>
<%= l(:field_assigned_to) %>: <%= link_to_user issue.assigned_to %><%# "#{issue.currency} " if issue.currency %><%# issue_price(issue.amount) %>
<% end %>
<%= l(:field_priority) %>: <%= issue.priority.name %><%# "#{issue.currency} " if issue.currency %><%# issue_price(issue.amount) %>
<% if issue.due_date %>
<%= l(:field_due_date) %>: <%= format_date issue.due_date %><%# "#{issue.currency} " if issue.currency %><%# issue_price(issue.amount) %>
<% end %>
<% end %>