Use named route.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10674 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-10-18 17:10:00 +00:00
parent 7729178d9d
commit 2b4389466f
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ module ApplicationHelper
if user.is_a?(User)
name = h(user.name(options[:format]))
if user.active? || (User.current.admin? && user.logged?)
link_to name, {:controller => 'users', :action => 'show', :id => user}, :class => user.css_classes
link_to name, user_path(user), :class => user.css_classes
else
name
end