diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 18:27:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 18:27:55 +0000 |
commit | 4f35ec97e88c4ad2017d2797d097430eaceaa427 (patch) | |
tree | 887761abbcda17ca1f0daab73bfbf0d73990dec7 /app/helpers/application_helper.rb | |
parent | 8195f95464bed5dd08305589f305a23bbd6ad245 (diff) | |
download | redmine-4f35ec97e88c4ad2017d2797d097430eaceaa427.tar.gz redmine-4f35ec97e88c4ad2017d2797d097430eaceaa427.zip |
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
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a6acafb5b..f21b43a23 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 |