diff options
-rwxr-xr-x | app/helpers/link_to_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 3cdf12a87..dc5c8f34e 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -114,10 +114,9 @@ module LinkToHelper def user_admin_link_for_request(request, external_text=nil, internal_text=nil) if request.is_external? - text = external_text ? external_text : (request.external_user_name || _("Anonymous user")) + " (external)" + external_text || (request.external_user_name || _("Anonymous user")) + " (external)" else - text = internal_text ? internal_text : request.user.name - link_to(h(text), admin_user_show_url(request.user)) + link_to(h(internal_text || request.user.name), admin_user_show_url(request.user)) end end |