2011-05-30 22:52:25 +04:00
|
|
|
<% form_tag({}) do -%>
|
2009-11-11 14:35:27 +03:00
|
|
|
<%= hidden_field_tag 'back_url', url_for(params) %>
|
2010-02-06 17:05:13 +03:00
|
|
|
<div class="autoscroll">
|
2008-02-10 16:17:41 +03:00
|
|
|
<table class="list issues">
|
2007-10-01 12:44:17 +04:00
|
|
|
<thead><tr>
|
2010-09-03 23:59:49 +04:00
|
|
|
<th class="checkbox hide-when-print"><%= 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-11-16 21:07:30 +03:00
|
|
|
<% previous_group = false %>
|
2007-10-01 12:44:17 +04:00
|
|
|
<tbody>
|
2010-03-27 19:55:20 +03:00
|
|
|
<% issue_list(issues) do |issue, level| -%>
|
2009-12-02 21:57:17 +03:00
|
|
|
<% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
|
2009-04-26 17:09:14 +04:00
|
|
|
<% 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-12-02 21:57:17 +03:00
|
|
|
<%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%= @issue_count_by_group[group] %>)</span>
|
2011-03-20 19:01:25 +03:00
|
|
|
<%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
|
2009-04-26 17:09:14 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2009-11-16 21:07:30 +03:00
|
|
|
<% previous_group = group %>
|
2009-04-26 17:09:14 +04:00
|
|
|
<% end %>
|
2010-03-27 19:55:20 +03:00
|
|
|
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
2010-09-03 23:59:49 +04:00
|
|
|
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
|
2010-03-29 23:50:00 +04:00
|
|
|
<td class="id"><%= 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>
|
2010-02-06 17:05:13 +03:00
|
|
|
</div>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% end -%>
|