From bdb0f638dab2563d95576369e837192533f26b0e Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 27 May 2015 15:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=98=85=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=9A=84=E4=B8=8B=E8=BD=BD=EF=BC=8C=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=89=B9=E9=98=85=E7=BB=93=E6=9E=9C=E4=B8=8B=E5=91=A8=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 +- app/views/student_work/_show.html.erb | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index d880ebe35..076082d93 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -428,7 +428,7 @@ private @attachment.container.board.course) @course = @attachment.container.board.course else - unless @attachment.container_type == 'Bid' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion' + unless @attachment.container_type == 'Bid' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion' || @attachment.container_type = 'StudentWorksScore' @project = @attachment.project end end diff --git a/app/views/student_work/_show.html.erb b/app/views/student_work/_show.html.erb index 205b3106f..f7a01f309 100644 --- a/app/views/student_work/_show.html.erb +++ b/app/views/student_work/_show.html.erb @@ -47,7 +47,7 @@ (<%= student_work_score_role score%>) 评分: <%= score.score%>分 - 回复 + 回复 <%=format_time score.created_at %> @@ -55,9 +55,10 @@
<%= score.comment%>
- -