2014-11-04 15:46:24 +08:00
|
|
|
|
<% if is_comprehensive_evaluation == 3 || User.current == homework.user%>
|
2014-11-03 15:28:54 +08:00
|
|
|
|
<%= l(:label_work_rating) %>:
|
|
|
|
|
<%= render :partial => 'show_score', locals: {:stars => totle_score} %>
|
|
|
|
|
<% elsif is_comprehensive_evaluation == 2 %>
|
|
|
|
|
<%= l(:label_work_rating) %>:
|
2014-11-03 17:31:04 +08:00
|
|
|
|
<% if has_evaluation %>
|
2014-11-03 15:28:54 +08:00
|
|
|
|
<%= 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 %>
|