From 3d2ba83c366ab151e59ec6d96980d91dfc31ada2 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 9 Mar 2016 17:22:16 +0800 Subject: [PATCH] =?UTF-8?q?@=E6=B6=88=E6=81=AF=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_at_message.html.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/users/_user_at_message.html.erb b/app/views/users/_user_at_message.html.erb index dd5ffbe56..343741cd4 100644 --- a/app/views/users/_user_at_message.html.erb +++ b/app/views/users/_user_at_message.html.erb @@ -5,9 +5,15 @@ <%= ma.author.login %>提到了你:
  • - <% if ma.at_message_type == "Message" %> + <% if ma.at_message_type == "Message" && !ma.at_message.course.nil? %> <%= link_to ma.subject.html_safe, course_boards_path(ma.at_message.course, - :parent_id => ma.at_message.parent_id ? ma.at_message.parent_id : ma.at_message.id, :topic_id => ma.at_message.id), + :parent_id => ma.at_message.parent_id ? ma.at_message.parent_id : ma.at_message.id, :topic_id => ma.at_message.id), + :class =>"#{ma.viewed? ? "newsGrey" : "newsBlack"}", + :onmouseover =>"message_titile_show($(this),event)", + :onmouseout => "message_titile_hide($(this))" %> + <% elsif ma.at_message_type == "Message" && !ma.at_message.project.nil? %> + <%= link_to ma.subject.html_safe, project_boards_path(ma.at_message.project, + :parent_id => ma.at_message.parent_id ? ma.at_message.parent_id : ma.at_message.id, :topic_id => ma.at_message.id), :class =>"#{ma.viewed? ? "newsGrey" : "newsBlack"}", :onmouseover =>"message_titile_show($(this),event)", :onmouseout => "message_titile_hide($(this))" %>