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