<% form_tag({}) do -%> <%= hidden_field_tag 'back_url', url_for(params) %> <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %> <% @columns.each do |column| %> <%= column_header(column) %> <% end %> <% 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 %> <% @columns.each do |column| -%> <%= content_tag 'td', case column.name when :done_ratio number_to_percentage(column.value(issue), :precision => 0) else column_content(column, issue) end, :class => column.name %> <%- end %> <% end -%>
  <%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> (<%= @issue_count_by_group[group] %>)
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>

<%=h issue.subject %>

<%= textilizable issue, :description, :attachments => issue.attachments %>
<% end -%>