2008-02-10 16:17:41 +03:00
|
|
|
<% form_tag({}) do -%>
|
|
|
|
<table class="list issues">
|
2007-10-01 12:44:17 +04:00
|
|
|
<thead><tr>
|
2008-03-20 00:39:21 +03:00
|
|
|
<th><%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(this.up("form")); return false;',
|
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
|
2007-10-09 23:07:19 +04:00
|
|
|
</th>
|
2008-02-05 20:28:02 +03:00
|
|
|
<%= sort_header_tag("#{Issue.table_name}.id", :caption => '#', :default_order => 'desc') %>
|
2007-10-01 12:44:17 +04:00
|
|
|
<% query.columns.each do |column| %>
|
|
|
|
<%= column_header(column) %>
|
|
|
|
<% end %>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2008-02-10 16:17:41 +03:00
|
|
|
<% issues.each do |issue| -%>
|
2007-10-28 13:55:59 +03:00
|
|
|
<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
|
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 -%>
|