2008-02-10 16:17:41 +03:00
|
|
|
<% form_tag({}) do -%>
|
2009-11-11 14:35:27 +03:00
|
|
|
<%= hidden_field_tag 'back_url', url_for(params) %>
|
2008-02-10 16:17:41 +03:00
|
|
|
<table class="list issues">
|
2007-10-01 12:44:17 +04:00
|
|
|
<thead><tr>
|
2008-07-14 19:46:02 +04:00
|
|
|
<th><%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;',
|
2008-03-20 00:39:21 +03:00
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
|
2007-10-09 23:07:19 +04:00
|
|
|
</th>
|
2008-12-24 13:03:13 +03:00
|
|
|
<%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %>
|
2007-10-01 12:44:17 +04:00
|
|
|
<% query.columns.each do |column| %>
|
|
|
|
<%= column_header(column) %>
|
|
|
|
<% end %>
|
|
|
|
</tr></thead>
|
2009-04-26 17:09:14 +04:00
|
|
|
<% group = false %>
|
2007-10-01 12:44:17 +04:00
|
|
|
<tbody>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% issues.each do |issue| -%>
|
2009-04-26 17:09:14 +04:00
|
|
|
<% if @query.grouped? && issue.send(@query.group_by) != group %>
|
|
|
|
<% group = issue.send(@query.group_by) %>
|
|
|
|
<% reset_cycle %>
|
2009-05-04 22:04:09 +04:00
|
|
|
<tr class="group open">
|
2009-04-26 17:09:14 +04:00
|
|
|
<td colspan="<%= query.columns.size + 2 %>">
|
2009-05-04 22:04:09 +04:00
|
|
|
<span class="expander" onclick="toggleRowGroup(this); return false;"> </span>
|
2009-04-26 17:09:14 +04:00
|
|
|
<%= group.blank? ? 'None' : group %> <span class="count">(<%= @issue_count_by_group[group] %>)</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2009-04-25 15:28:48 +04:00
|
|
|
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %>">
|
2008-03-05 11:25:22 +03:00
|
|
|
<td class="checkbox"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
|
2007-10-01 12:44:17 +04:00
|
|
|
<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
|
2007-10-01 12:44:17 +04:00
|
|
|
</tr>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% end -%>
|
2007-10-01 12:44:17 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% end -%>
|