@@ -262,7 +262,7 class ProjectsController < ApplicationController | |||||
262 | @issue_count = Issue.count(:include => [:status, :project], :conditions => @query.statement) |
|
262 | @issue_count = Issue.count(:include => [:status, :project], :conditions => @query.statement) | |
263 | @issue_pages = Paginator.new self, @issue_count, @results_per_page, params['page'] |
|
263 | @issue_pages = Paginator.new self, @issue_count, @results_per_page, params['page'] | |
264 | @issues = Issue.find :all, :order => sort_clause, |
|
264 | @issues = Issue.find :all, :order => sort_clause, | |
265 |
:include => [ :a |
|
265 | :include => [ :assigned_to, :status, :tracker, :project, :priority ], | |
266 | :conditions => @query.statement, |
|
266 | :conditions => @query.statement, | |
267 | :limit => @issue_pages.items_per_page, |
|
267 | :limit => @issue_pages.items_per_page, | |
268 | :offset => @issue_pages.current.offset |
|
268 | :offset => @issue_pages.current.offset | |
@@ -280,7 +280,7 class ProjectsController < ApplicationController | |||||
280 | render :action => 'list_issues' and return unless @query.valid? |
|
280 | render :action => 'list_issues' and return unless @query.valid? | |
281 |
|
281 | |||
282 | @issues = Issue.find :all, :order => sort_clause, |
|
282 | @issues = Issue.find :all, :order => sort_clause, | |
283 | :include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ], |
|
283 | :include => [ :assigned_to, :author, :status, :tracker, :priority, {:custom_values => :custom_field} ], | |
284 | :conditions => @query.statement, |
|
284 | :conditions => @query.statement, | |
285 | :limit => Setting.issues_export_limit |
|
285 | :limit => Setting.issues_export_limit | |
286 |
|
286 | |||
@@ -292,6 +292,7 class ProjectsController < ApplicationController | |||||
292 | l(:field_tracker), |
|
292 | l(:field_tracker), | |
293 | l(:field_priority), |
|
293 | l(:field_priority), | |
294 | l(:field_subject), |
|
294 | l(:field_subject), | |
|
295 | l(:field_assigned_to), | |||
295 | l(:field_author), |
|
296 | l(:field_author), | |
296 | l(:field_start_date), |
|
297 | l(:field_start_date), | |
297 | l(:field_due_date), |
|
298 | l(:field_due_date), | |
@@ -309,7 +310,8 class ProjectsController < ApplicationController | |||||
309 | issue.tracker.name, |
|
310 | issue.tracker.name, | |
310 | issue.priority.name, |
|
311 | issue.priority.name, | |
311 | issue.subject, |
|
312 | issue.subject, | |
312 |
issue.a |
|
313 | (issue.assigned_to ? issue.assigned_to.name : ""), | |
|
314 | issue.author.name, | |||
313 | issue.start_date ? l_date(issue.start_date) : nil, |
|
315 | issue.start_date ? l_date(issue.start_date) : nil, | |
314 | issue.due_date ? l_date(issue.due_date) : nil, |
|
316 | issue.due_date ? l_date(issue.due_date) : nil, | |
315 | issue.done_ratio, |
|
317 | issue.done_ratio, |
@@ -51,7 +51,7 | |||||
51 | <%= sort_header_tag("#{IssueStatus.table_name}.name", :caption => l(:field_status)) %> |
|
51 | <%= sort_header_tag("#{IssueStatus.table_name}.name", :caption => l(:field_status)) %> | |
52 | <%= sort_header_tag("#{Issue.table_name}.priority_id", :caption => l(:field_priority)) %> |
|
52 | <%= sort_header_tag("#{Issue.table_name}.priority_id", :caption => l(:field_priority)) %> | |
53 | <th><%=l(:field_subject)%></th> |
|
53 | <th><%=l(:field_subject)%></th> | |
54 |
<%= sort_header_tag("#{User.table_name}.lastname", :caption => l(:field_a |
|
54 | <%= sort_header_tag("#{User.table_name}.lastname", :caption => l(:field_assigned_to)) %> | |
55 | <%= sort_header_tag("#{Issue.table_name}.updated_on", :caption => l(:field_updated_on)) %> |
|
55 | <%= sort_header_tag("#{Issue.table_name}.updated_on", :caption => l(:field_updated_on)) %> | |
56 | </tr></thead> |
|
56 | </tr></thead> | |
57 | <tbody> |
|
57 | <tbody> | |
@@ -63,7 +63,7 | |||||
63 | <td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td> |
|
63 | <td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td> | |
64 | <td align="center"><%= issue.priority.name %></td> |
|
64 | <td align="center"><%= issue.priority.name %></td> | |
65 | <td><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td> |
|
65 | <td><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td> | |
66 |
<td align="center"><%= issue.a |
|
66 | <td align="center"><%= issue.assigned_to.name if issue.assigned_to %></td> | |
67 | <td align="center"><%= format_time(issue.updated_on) %></td> |
|
67 | <td align="center"><%= format_time(issue.updated_on) %></td> | |
68 | </tr> |
|
68 | </tr> | |
69 | <% end %> |
|
69 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now