Makes logged-in username in topbar linking to (#2291).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2109 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-12-07 13:12:19 +00:00
parent e93d02d228
commit 0ea3d150e1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ module ApplicationHelper
end
# Display a link to user's account page
def link_to_user(user)
(user && !user.anonymous?) ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
def link_to_user(user, options={})
(user && !user.anonymous?) ? link_to(user.name(options[:format]), :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
end
def link_to_issue(issue, options={})