title修改

This commit is contained in:
cxt 2016-07-01 17:51:01 +08:00
parent 8b87c141cc
commit 0e2e1b09b5
1 changed files with 2 additions and 0 deletions

View File

@ -1079,6 +1079,8 @@ module ApplicationHelper
title << @organization.name
elsif @user
title << @user.try(:realname)
elsif @syllabus
title << @syllabus.title
else
title << (User.current.id == 2 ? "未登录" : User.current.try(:realname))
end