@@ -1,25 +1,25 | |||
|
1 | 1 | <div id="bulk-edit"></div> |
|
2 | 2 | <table class="list"> |
|
3 | 3 | <thead><tr> |
|
4 | 4 | <th><%= link_to_remote(image_tag('edit.png'), |
|
5 | 5 | {:url => { :controller => 'projects', :action => 'bulk_edit_issues', :id => @project }, |
|
6 | 6 | :method => :get}, |
|
7 | 7 | {:title => l(:label_bulk_edit_selected_issues)}) if @project && User.current.allowed_to?(:edit_issues, @project) %> |
|
8 | 8 | </th> |
|
9 | 9 | <%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %> |
|
10 | 10 | <% query.columns.each do |column| %> |
|
11 | 11 | <%= column_header(column) %> |
|
12 | 12 | <% end %> |
|
13 | 13 | </tr></thead> |
|
14 | 14 | <tbody> |
|
15 | 15 | <% issues.each do |issue| %> |
|
16 | <tr class="issue <%= cycle('odd', 'even') %>"> | |
|
16 | <tr class="issue <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>"> | |
|
17 | 17 | <td class="checkbox"><%= check_box_tag("issue_ids[]", issue.id, false, :id => "issue_#{issue.id}", :disabled => (!@project || @project != issue.project)) %></td> |
|
18 | 18 | <td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td> |
|
19 | 19 | <% query.columns.each do |column| %> |
|
20 | 20 | <%= content_tag 'td', column_content(column, issue), :class => column.name %> |
|
21 | 21 | <% end %> |
|
22 | 22 | </tr> |
|
23 | 23 | <% end %> |
|
24 | 24 | </tbody> |
|
25 | 25 | </table> |
@@ -1,25 +1,25 | |||
|
1 | 1 | <% if issues.length > 0 %> |
|
2 | 2 | <table class="list"> |
|
3 | 3 | <thead><tr> |
|
4 | 4 | <th>#</th> |
|
5 | 5 | <th><%=l(:field_tracker)%></th> |
|
6 | 6 | <th><%=l(:field_subject)%></th> |
|
7 | 7 | </tr></thead> |
|
8 | 8 | <tbody> |
|
9 | 9 | <% for issue in issues %> |
|
10 | <tr class="<%= cycle("odd", "even") %>"> | |
|
10 | <tr class="<%= cycle("odd", "even") %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>"> | |
|
11 | 11 | <td class="id"> |
|
12 | 12 | <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %> |
|
13 | 13 | </td> |
|
14 | 14 | <td><p class="small"><%= issue.project.name %> - <%= issue.tracker.name %><br /> |
|
15 | 15 | <%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td> |
|
16 | 16 | <td> |
|
17 | 17 | <p class="small"><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></p> |
|
18 | 18 | </td> |
|
19 | 19 | </tr> |
|
20 | 20 | <% end %> |
|
21 | 21 | </tbody> |
|
22 | 22 | </table> |
|
23 | 23 | <% else %> |
|
24 | 24 | <i><%=l(:label_no_data)%></i> |
|
25 | 25 | <% end %> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now