Replaces del tags by a css style (a.issue.closed) for closed issue links.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1223 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-09 18:27:55 +00:00
parent 8195f95464
commit 4f35ec97e8
4 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ module ApplicationHelper
when nil
if issue = Issue.find_by_id(oid, :include => [:project, :status], :conditions => Project.visible_by(User.current))
link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
:class => 'issue',
:class => (issue.closed? ? 'issue closed' : 'issue'),
:title => "#{truncate(issue.subject, 100)} (#{issue.status.name})")
link = content_tag('del', link) if issue.closed?
end