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%>