summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-02 13:56:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-02 13:56:49 +0000
commitaa91ca0a8d0e9f7183c4862fcddac01ddb7c41c9 (patch)
treec04832683839d59be561ee0c99d0f886d3f55f9a /app
parentd3b831bf7b55a40122deadab072b0b37db157e34 (diff)
downloadredmine-aa91ca0a8d0e9f7183c4862fcddac01ddb7c41c9.tar.gz
redmine-aa91ca0a8d0e9f7183c4862fcddac01ddb7c41c9.zip
issue list: added 'Priority' column, removed 'Created on' column
git-svn-id: http://redmine.rubyforge.org/svn/trunk@211 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb2
-rw-r--r--app/views/projects/list_issues.rhtml6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 5d42221c3..942dccb7c 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -240,7 +240,7 @@ class ProjectsController < ApplicationController
@issue_count = Issue.count(:include => [:status, :project], :conditions => @query.statement)
@issue_pages = Paginator.new self, @issue_count, @results_per_page, params['page']
@issues = Issue.find :all, :order => sort_clause,
- :include => [ :author, :status, :tracker, :project ],
+ :include => [ :author, :status, :tracker, :project, :priority ],
:conditions => @query.statement,
:limit => @issue_pages.items_per_page,
:offset => @issue_pages.current.offset
diff --git a/app/views/projects/list_issues.rhtml b/app/views/projects/list_issues.rhtml
index 322004ea4..c3bd13fe2 100644
--- a/app/views/projects/list_issues.rhtml
+++ b/app/views/projects/list_issues.rhtml
@@ -49,9 +49,9 @@
<%= sort_header_tag('issues.id', :caption => '#') %>
<%= sort_header_tag('issues.tracker_id', :caption => l(:field_tracker)) %>
<%= sort_header_tag('issue_statuses.name', :caption => l(:field_status)) %>
+ <%= sort_header_tag('issues.priority_id', :caption => l(:field_priority)) %>
<th><%=l(:field_subject)%></th>
<%= sort_header_tag('users.lastname', :caption => l(:field_author)) %>
- <%= sort_header_tag('issues.created_on', :caption => l(:field_created_on)) %>
<%= sort_header_tag('issues.updated_on', :caption => l(:field_updated_on)) %>
</tr></thead>
<tbody>
@@ -61,9 +61,9 @@
<td align="center"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
<td align="center"><%= issue.tracker.name %></td>
<td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>
+ <td align="center"><%= issue.priority.name %></td>
<td><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td>
- <td align="center"><%= issue.author.display_name %></td>
- <td align="center"><%= format_time(issue.created_on) %></td>
+ <td align="center"><%= issue.author.display_name %></td>
<td align="center"><%= format_time(issue.updated_on) %></td>
</tr>
<% end %>