浏览器tab的title,显示用户姓名,不是登录名
This commit is contained in:
parent
879f9a0ad5
commit
2ce2134f0b
|
@ -1044,9 +1044,9 @@ module ApplicationHelper
|
|||
elsif @organization
|
||||
title << @organization.name
|
||||
elsif @user
|
||||
title << @user.login
|
||||
title << @user.try(:realname)
|
||||
else
|
||||
title << User.current.login
|
||||
title << User.current.try(:realname)
|
||||
end
|
||||
if first_page.nil? || first_page.web_title.nil?
|
||||
title << Setting.app_title unless Setting.app_title == title.last
|
||||
|
|
Loading…
Reference in New Issue