]> source.dussan.org Git - redmine.git/commitdiff
Clean up ticket auto links.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 14 Nov 2009 12:59:32 +0000 (12:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 14 Nov 2009 12:59:32 +0000 (12:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3041 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index cfc7717d531df8cbc0bcad1796a4cc22e5098102..e126a9633b7871af146f02b4c36947a17bb88217 100644 (file)
@@ -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))