|
|
@ -132,9 +132,10 @@ module ApplicationHelper
|
|
|
|
def link_to_user_header user,canShowRealName=false,options={}
|
|
|
|
def link_to_user_header user,canShowRealName=false,options={}
|
|
|
|
if user.is_a?(User)
|
|
|
|
if user.is_a?(User)
|
|
|
|
if canShowRealName
|
|
|
|
if canShowRealName
|
|
|
|
name = h(user.realname(options[:format]))
|
|
|
|
name = user.show_name
|
|
|
|
|
|
|
|
name = user.login if name == ""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
name = h(user.name(options[:format]))
|
|
|
|
name = user.login
|
|
|
|
end
|
|
|
|
end
|
|
|
|
link_to name, {:controller=> 'users', :action => 'show', id: user.id, host: Setting.user_domain}, :class => options[:class]
|
|
|
|
link_to name, {:controller=> 'users', :action => 'show', id: user.id, host: Setting.user_domain}, :class => options[:class]
|
|
|
|
else
|
|
|
|
else
|
|
|
|