summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-14 12:59:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-14 12:59:32 +0000
commitbc37fcee74cfdb49cad2a80b5ab5b9a30f89e2cd (patch)
treee67b292b14b71e5770fd19039b5586c44814bbab /app/helpers
parentcbeeaa4d4d47b5118e6de21d180f221e04c0a9d5 (diff)
downloadredmine-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.rb3
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))