<% 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 %> <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> <% end %> <% elsif @is_comprehensive_evaluation == 1%> <%= l(:label_work_rating) %>: <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> <% end %>