2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({}) do -%>
|
2012-03-24 04:02:20 +04:00
|
|
|
<%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
|
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>
|
2011-09-15 13:23:07 +04: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 %>
|
2011-09-15 13:23:07 +04:00
|
|
|
</tr></thead>
|
|
|
|
<% previous_group = false %>
|
|
|
|
<tbody>
|
|
|
|
<% 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">
|
2011-09-15 13:23:07 +04:00
|
|
|
<td colspan="<%= query.columns.size + 2 %>">
|
2011-11-20 16:07:46 +04:00
|
|
|
<span class="expander" onclick="toggleRowGroup(this);"> </span>
|
2011-09-15 13:23:07 +04: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') %>
|
2011-09-15 13:23:07 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% previous_group = group %>
|
2009-04-26 17:09:14 +04:00
|
|
|
<% end %>
|
2011-09-15 13:23:07 +04:00
|
|
|
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
|
|
|
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
|
2012-04-25 21:17:49 +04:00
|
|
|
<td class="id"><%= link_to issue.id, issue_path(issue) %></td>
|
|
|
|
<%= raw query.columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
|
2011-09-15 13:23:07 +04:00
|
|
|
</tr>
|
|
|
|
<% end -%>
|
|
|
|
</tbody>
|
2007-10-01 12:44:17 +04:00
|
|
|
</table>
|
2010-02-06 17:05:13 +03:00
|
|
|
</div>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% end -%>
|