_list.rhtml

sunday walker, 2008-02-11 14:16

Download (1.28 KB)

 
1
<div id="bulk-edit"></div>
2
<table class="list">
3
    <thead><tr>
4
        <th><%= link_to_remote(image_tag('edit.png'),
5
                               {:url => { :controller => 'projects', :action => 'bulk_edit_issues', :id => @project },
6
                                :method => :get},
7
                               {:title => l(:label_bulk_edit_selected_issues)}) if @project && User.current.allowed_to?(:edit_issues, @project) %>
8
        </th>
9
                <%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %>
10
        <% query.columns.each do |column| %>
11
          <%= column_header(column) %>
12
        <% end %>
13
        </tr></thead>
14
        <tbody>
15
        <% issues.each do |issue| %>
16

    
17
        <tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
18
            <td class="checkbox"><%= check_box_tag("issue_ids[]", issue.id, false, :id => "issue_#{issue.id}", :disabled => (!@project || @project != issue.project)) %></td>
19
                <td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
20
        <% query.columns.each do |column| %>
21
          <%= content_tag 'td', column_content(column, issue), :class => column.name %>
22
        <% end %>
23
        </tr>
24
        <% end %>
25
        </tbody>
26
</table>