From 9b702971bf4c4c7b725949dfe43826354324be27 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 18 Oct 2012 17:12:22 +0000 Subject: [PATCH] Use named route. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10675 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0b06f5d23..c4b581255 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -78,9 +78,7 @@ module ApplicationHelper subject = truncate(subject, :length => options[:truncate]) end end - s = link_to text, {:controller => "issues", :action => "show", :id => issue}, - :class => issue.css_classes, - :title => title + s = link_to text, issue_path(issue), :class => issue.css_classes, :title => title s << h(": #{subject}") if subject s = h("#{issue.project} - ") + s if options[:project] s