2014-11-06 16:52:29 +08:00
|
|
|
|
<% 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 %>
|
|
|
|
|
<% if has_evaluation %>
|
2014-11-08 13:43:07 +08:00
|
|
|
|
<%= l(:label_work_rating) %>:
|
2014-11-08 15:20:43 +08:00
|
|
|
|
<%= rating_for homework, dimension: :quality,start_score: @m_score, class: 'rateable div_inline' %>
|
2014-11-06 16:52:29 +08:00
|
|
|
|
<% else %>
|
|
|
|
|
<%= l(:label_work_rating) %>:
|
|
|
|
|
<%= rating_for homework, dimension: :quality,start_score: 0, class: 'rateable div_inline' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% elsif @is_comprehensive_evaluation == 1%>
|
|
|
|
|
<%= l(:label_work_rating) %>:
|
2014-11-11 11:05:56 +08:00
|
|
|
|
<%= rating_for homework, dimension: :quality,start_score: @m_score, class: 'rateable div_inline' %>
|
2014-11-03 15:28:54 +08:00
|
|
|
|
<% end %>
|