浏览器tab的title,显示用户姓名,不是登录名

This commit is contained in:
cxt 2016-03-15 17:25:46 +08:00
parent 879f9a0ad5
commit 2ce2134f0b
1 changed files with 2 additions and 2 deletions

View File

@ -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