From 3906cbbf75f086c418c2168405999eaaf778922d Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 4 Jul 2015 11:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BF=E8=AF=84=E4=BD=9C=E4=B8=9A=E5=92=8C?= =?UTF-8?q?=E9=9D=9E=E5=8C=BF=E8=AF=84=E4=BD=9C=E4=B8=9A=EF=BC=8C=E4=BD=9C?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_eavluation_student_work.html.erb | 71 +++++++++++++++++++ app/views/student_work/index.html.erb | 11 ++- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 app/views/student_work/_eavluation_student_work.html.erb diff --git a/app/views/student_work/_eavluation_student_work.html.erb b/app/views/student_work/_eavluation_student_work.html.erb new file mode 100644 index 000000000..c555b36a9 --- /dev/null +++ b/app/views/student_work/_eavluation_student_work.html.erb @@ -0,0 +1,71 @@ + + \ No newline at end of file diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 28f7cc2fc..7bac9f97b 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -87,7 +87,16 @@
<% @stundet_works.each do |student_work|%> - <%= render :partial => (@is_evaluation ? 'evaluation_work' :'student_work'),:locals => {:student_work => student_work}%> + <% if @is_evaluation%> + <%= render :partial => "evaluation_work",:locals => {:student_work => student_work}%> + <% else %> + <% if @homework.homework_type == 1%> + <%= render :partial => "eavluation_student_work",:locals => {:student_work => student_work}%> + <% else%> + <%= render :partial => "student_work",:locals => {:student_work => student_work}%> + <% end%> + <% end%> +
<% end%>