From 8998c6074657c3ed032ac313ff5140b9c8910812 Mon Sep 17 00:00:00 2001 From: z9hang Date: Wed, 5 Nov 2014 10:53:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=84=E5=88=86=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E8=AF=84=E5=88=86=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_attach/_show_star.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/homework_attach/_show_star.html.erb b/app/views/homework_attach/_show_star.html.erb index 6dc82e238..08923a874 100644 --- a/app/views/homework_attach/_show_star.html.erb +++ b/app/views/homework_attach/_show_star.html.erb @@ -1,11 +1,11 @@ <% if is_comprehensive_evaluation == 3 || User.current == homework.user%> - <%= l(:label_work_rating) %>: - <%= render :partial => 'show_score', locals: {:stars => totle_score} %> + <% elsif is_comprehensive_evaluation == 2 %> - <%= l(:label_work_rating) %>: <% if has_evaluation %> - <%= render :partial => 'show_score', locals: {:stars => totle_score} %> + <% else %> + <%= l(:label_work_rating) %>: <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> <% end %>