From 7777e6364708203acf5dcf75c4cf5ddf33196994 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 16 Dec 2016 19:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B6=88=E6=81=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_message_applied.html.erb | 8 +++++--- app/views/users/_user_message_course.html.erb | 11 ++++++----- app/views/users/_user_message_list.html.erb | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/views/users/_user_message_applied.html.erb b/app/views/users/_user_message_applied.html.erb index 47cda9697..20275ceef 100644 --- a/app/views/users/_user_message_applied.html.erb +++ b/app/views/users/_user_message_applied.html.erb @@ -29,7 +29,8 @@ <% elsif ma && ma.applied_type == "StudentWorksScoresAppeal" %> <% end %> diff --git a/app/views/users/_user_message_course.html.erb b/app/views/users/_user_message_course.html.erb index 0e3e3b508..c3566c39c 100644 --- a/app/views/users/_user_message_course.html.erb +++ b/app/views/users/_user_message_course.html.erb @@ -401,7 +401,7 @@
  • <% if ma.course_message.reviewer_role == 3 %> - <%= link_to image_tag(url_to_avatar(""), "javascript:void(0);", :width => "30", :height => "30"), :target => '_blank' %> + <%= link_to image_tag(url_to_avatar(""), :width => "30", :height => "30"),"javascript:void(0);", :target => '_blank' %> <% else %> <%= link_to image_tag(url_to_avatar(ma.course_message.user), :width => "30", :height => "30"), user_path(ma.course_message.user), :target => '_blank' %> <% end %> @@ -628,6 +628,7 @@ <% if ma.course_message_type == "StudentWorksScoresAppeal" && ma.course_message %>
      +
    • <%=link_to image_tag(url_to_avatar(""), :width => "30", :height => "30"), "javascript:void(0);", :target => '_blank' %>
    • @@ -648,11 +649,12 @@ <% end %> -
    • +
    • <%= link_to ma.course_message.student_works_score.student_work.homework_common.name, student_work_index_path(:homework => ma.course_message.student_works_score.student_work.homework_common_id, :show_work_id => ma.course_message.student_works_score.student_work_id, :tab => 2), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
    • -
    • <%= time_tag(ma.created_at).html_safe %>
    • +
      +
    • <%= time_tag(ma.created_at).html_safe %>
    <% end %> @@ -666,8 +668,7 @@ 系统提示 您成功创建了班级:
  • -
  • +
  • <%= link_to "班级名称:" + ma.course_message.name, course_path(ma.course_message), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %> diff --git a/app/views/users/_user_message_list.html.erb b/app/views/users/_user_message_list.html.erb index 4cf520ff6..833b424ed 100644 --- a/app/views/users/_user_message_list.html.erb +++ b/app/views/users/_user_message_list.html.erb @@ -16,7 +16,7 @@ var parentWidth = $(this).parent().width(); var eq0Width = $(this).parent().children().eq(0).width(); var eq1Width = $(this).parent().children().eq(1).width(); - var classWidth = parentWidth - eq0Width - eq1Width; + var classWidth = parentWidth - eq0Width - eq1Width - 10; $(this).css("max-width",classWidth + "px"); }); //$(".messageInformationContents").width()