控制界面
This commit is contained in:
parent
ff53840029
commit
7c7c337deb
|
@ -106,9 +106,9 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
# 当前用户查看消息,则设置消息为已读
|
# 当前用户查看消息,则设置消息为已读
|
||||||
querys = @user.course_messages
|
querys = @user.course_messages
|
||||||
# if User.current.id == @user.id
|
if User.current.id == @user.id
|
||||||
# querys.update_all(:viewed => true)
|
querys.update_all(:viewed => true)
|
||||||
# end
|
end
|
||||||
@new_message_count = @user.forge_messages.count + @user.memo_messages.count + @user.course_messages.count + @user.user_feedback_messages.count
|
@new_message_count = @user.forge_messages.count + @user.memo_messages.count + @user.course_messages.count + @user.user_feedback_messages.count
|
||||||
case params[:type]
|
case params[:type]
|
||||||
when nil
|
when nil
|
||||||
|
|
Loading…
Reference in New Issue