From e30006be3974bacd032431f5cf1b59d6c5513ce8 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 16 Dec 2016 18:47:15 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 6 +++--- app/views/mailer/journals_for_message_add.html.erb | 1 - app/views/users/_anonymous_evaluation_list.html.erb | 4 ++-- app/views/users/_unfinished_homework_list.html.erb | 4 ++-- app/views/users/_unfinished_test_list.html.erb | 4 ++-- app/views/users/_unsolved_issues_list.html.erb | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5ddf69a2d..562d133bb 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1872,7 +1872,7 @@ class UsersController < ApplicationController @applied_message_alls << mess end elsif message_all.message_type == "CourseMessage" - if (mess.course_message_type == "JoinCourse" && mess.status == 0) + if mess.course_message_type == "JoinCourseRequest" && mess.status == 0 @applied_message_alls << mess end end @@ -2083,8 +2083,8 @@ class UsersController < ApplicationController @message_alls << mess end elsif message_all.message_type == "CourseMessage" - if (mess.course_message_type == "JoinCourse" && mess.status == 0) - @message_alls << mess + if mess.course_message_type == "JoinCourseRequest" && mess.status == 0 + @message_alls << mess end end end diff --git a/app/views/mailer/journals_for_message_add.html.erb b/app/views/mailer/journals_for_message_add.html.erb index cfb288d9d..294f27d6a 100644 --- a/app/views/mailer/journals_for_message_add.html.erb +++ b/app/views/mailer/journals_for_message_add.html.erb @@ -1,7 +1,6 @@
- <%= link_to(h("#{@user.login}(#{@user.show_name})"), @issue_author_url , :style=>'color:#1b55a7; font-weight:bold;') %> 给你留言了
diff --git a/app/views/users/_anonymous_evaluation_list.html.erb b/app/views/users/_anonymous_evaluation_list.html.erb index 3a6be81ff..67447f50e 100644 --- a/app/views/users/_anonymous_evaluation_list.html.erb +++ b/app/views/users/_anonymous_evaluation_list.html.erb @@ -3,10 +3,10 @@