From 147648992181f27c69f873b44ed5ad306d119ea7 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Wed, 16 Sep 2015 17:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BC=A0=E6=A0=87=E7=BB=8F?= =?UTF-8?q?=E8=BF=87=E6=8F=90=E7=A4=BAtitle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/user_messages.html.erb | 14 ++++++++++++-- public/stylesheets/new_user.css | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/views/users/user_messages.html.erb b/app/views/users/user_messages.html.erb index 4c24f0d0a..05f28d286 100644 --- a/app/views/users/user_messages.html.erb +++ b/app/views/users/user_messages.html.erb @@ -180,8 +180,14 @@ ">发布了课程留言:
  • - <%= link_to ma.course_message.notes, course_feedback_path(:id => ma.course_id), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", :title => "#{ma.course_message.notes}" %> + <%= link_to ma.course_message.notes.html_safe, course_feedback_path(:id => ma.course_id), + :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", + :onmouseover => "message_titile_show($(this),event)", + :onmouseout => "message_titile_hide($(this))" %>
  • +
  • <%= time_tag(ma.created_at).html_safe %>
  • @@ -246,8 +252,12 @@
  • <%= link_to get_issue_des_update(ma.forge_message).html_safe, issue_path(:id => ma.forge_message.journalized_id), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", - :title => "#{get_issue_des_update(ma.forge_message).html_safe}" %> + :onmouseover =>"message_titile_show($(this),event)", + :onmouseout => "message_titile_hide($(this))" %>
  • +
  • <%= time_tag(ma.created_at).html_safe %>
  • <% end %> diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css index 2e77ba0e8..faa5f8ea3 100644 --- a/public/stylesheets/new_user.css +++ b/public/stylesheets/new_user.css @@ -983,7 +983,7 @@ img.ui-datepicker-trigger { text-overflow: ellipsis; margin-bottom: 3px; } -.message_title{border: 1px solid #D4D4D4;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #E8E8E8;} +.message_title{border: 1px solid #D4D4D4;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #E8E8E8; max-width:400px;word-wrap:break-word; word-break:break-all;} .message_title_red{border: 1px solid #D4D4D4;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #E8E8E8;color: red} .description{display: none !important;}