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:
parent
7729178d9d
commit
2b4389466f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue