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">
|
2012-09-26 03:32:39 +04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="checkbox hide-when-print">
|
|
|
|
<%= link_to image_tag('toggle_check.png'), {},
|
|
|
|
:onclick => 'toggleIssuesSelection(this); return false;',
|
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
|
|
|
|
</th>
|
|
|
|
<%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %>
|
|
|
|
<% query.columns.each do |column| %>
|
|
|
|
<%= column_header(column) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2011-09-15 13:23:07 +04:00
|
|
|
<% 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>
|
2012-09-26 03:32:39 +04: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>
|
2012-09-26 03:32:39 +04:00
|
|
|
<%= 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 -%>
|