diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-18 17:12:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-18 17:12:22 +0000 |
commit | 9b702971bf4c4c7b725949dfe43826354324be27 (patch) | |
tree | 548ba417321c4f32099cb367974f84c60c27a5cc /app | |
parent | 2b4389466f004e569ec60139ee183dd395d7fd47 (diff) | |
download | redmine-9b702971bf4c4c7b725949dfe43826354324be27.tar.gz redmine-9b702971bf4c4c7b725949dfe43826354324be27.zip |
Use named route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 1 insertions, 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 |