From: Jean-Philippe Lang Date: Sat, 14 Nov 2009 12:59:32 +0000 (+0000) Subject: Clean up ticket auto links. X-Git-Tag: 0.9.0~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc37fcee74cfdb49cad2a80b5ab5b9a30f89e2cd;p=redmine.git Clean up ticket auto links. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3041 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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))