From 5384e7eee883af82dc3e5a237e9d23a69c07f587 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 28 Aug 2015 15:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=AF=8F=E7=A7=8D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=97=B6=E5=80=99=E7=BB=99?= =?UTF-8?q?=E5=87=BA=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- app/views/users/user_messages.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 055955e04..66edf761f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -116,7 +116,7 @@ class UsersController < ApplicationController user_querys.update_all(:viewed => true) forum_querys.update_all(:viewed => true) end - @new_message_count = forge_querys.count + forum_querys.count + course_querys.count + user_querys.count + # @new_message_count = forge_querys.count + forum_querys.count + course_querys.count + user_querys.count case params[:type] when nil @message_alls = [] diff --git a/app/views/users/user_messages.html.erb b/app/views/users/user_messages.html.erb index f4c68b12a..33eeafa20 100644 --- a/app/views/users/user_messages.html.erb +++ b/app/views/users/user_messages.html.erb @@ -30,7 +30,7 @@
- <% if @new_message_count >0 %> + <% if @message_alls.count >0 %> <%# 课程消息 %> <% unless @message_alls.nil? %> <% @message_alls.each do |ma| %>