diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-14 12:59:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-14 12:59:32 +0000 |
commit | bc37fcee74cfdb49cad2a80b5ab5b9a30f89e2cd (patch) | |
tree | e67b292b14b71e5770fd19039b5586c44814bbab /app/helpers | |
parent | cbeeaa4d4d47b5118e6de21d180f221e04c0a9d5 (diff) | |
download | redmine-bc37fcee74cfdb49cad2a80b5ab5b9a30f89e2cd.tar.gz redmine-bc37fcee74cfdb49cad2a80b5ab5b9a30f89e2cd.zip |
Clean up ticket auto links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3041 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cfc7717d5..e126a9633 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -502,9 +502,8 @@ module ApplicationHelper when nil if issue = Issue.visible.find_by_id(oid, :include => :status) link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid}, - :class => (issue.closed? ? 'issue closed' : 'issue'), + :class => issue.css_classes, :title => "#{truncate(issue.subject, :length => 100)} (#{issue.status.name})") - link = content_tag('del', link) if issue.closed? end when 'document' if document = Document.find_by_id(oid, :include => [:project], :conditions => Project.visible_by(User.current)) |