summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-30 14:31:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-30 14:31:01 +0000
commit0b2299c7d1efcba652ddd8ef91c6a50602ee5029 (patch)
treeafe6a2d6cced56160f7c1eb5d149f4c10f29eeb9 /app/helpers
parent5f3f2e756b46f42c8a3827eb779885252ae095b4 (diff)
downloadredmine-0b2299c7d1efcba652ddd8ef91c6a50602ee5029.tar.gz
redmine-0b2299c7d1efcba652ddd8ef91c6a50602ee5029.zip
Adds link to user's account on issue history.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2073 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 5995187d7..064c13190 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -48,7 +48,7 @@ module ApplicationHelper
# Display a link to user's account page
def link_to_user(user)
- user ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
+ (user && !user.anonymous?) ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
end
def link_to_issue(issue, options={})