summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-20 09:50:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-20 09:50:33 +0000
commit83baccb71ac0e609ce72ebf322f73884548a9ba5 (patch)
tree768b11e9b7f242e03ba34c1769accd015815efeb /app/helpers/application_helper.rb
parent1ddd9bb55bc359fb034a1a03662ab331a0ac43dd (diff)
downloadredmine-83baccb71ac0e609ce72ebf322f73884548a9ba5.tar.gz
redmine-83baccb71ac0e609ce72ebf322f73884548a9ba5.zip
Strikethru closed issue links (#1127).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1680 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index ea7635483..6c69d8e6f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -41,6 +41,9 @@ module ApplicationHelper
end
def link_to_issue(issue, options={})
+ options[:class] ||= ''
+ options[:class] << ' issue'
+ options[:class] << ' closed' if issue.closed?
link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options
end