diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 11:01:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 11:01:35 +0000 |
commit | 1ca69f2af1eb152264fa0b0493f5173900da2f08 (patch) | |
tree | de68bc6563158a017ed46b31978e973f941fd454 /app/models/issue.rb | |
parent | 212bf1e2bbe680261beb4e096a051f63471cc45f (diff) | |
download | redmine-1ca69f2af1eb152264fa0b0493f5173900da2f08.tar.gz redmine-1ca69f2af1eb152264fa0b0493f5173900da2f08.zip |
Different icon for closed issues in search result (#992).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2256 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index e3a9e17ee..fa059cbd9 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -40,7 +40,8 @@ class Issue < ActiveRecord::Base # sort by id so that limited eager loading doesn't break with postgresql :order_column => "#{table_name}.id" acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id}: #{o.subject}"}, - :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}} + :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}}, + :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') } acts_as_activity_provider :find_options => {:include => [:project, :author, :tracker]}, :author_key => :author_id |