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