% is_teacher = is_course_teacher User.current,homework.bid.courses.first %>
<% if comprehensive_evaluation != nil && comprehensive_evaluation.count > 0 %>
<% stars = homework.rates(:quality).where("rater_id = #{comprehensive_evaluation.first.user.id}").select("stars").first %>
作业综评:
<% if stars != nil %>
<% else %>
<% end %>
<%= comprehensive_evaluation.first.notes%>
<% if is_teacher %>
评分:
<%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %>
(您可以重新打分,打分结果以最后一次打分为主!)
<% end %>
<% else %>
<% if is_teacher %>
作业综评:
评分:
<%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %>
(您可以重新打分,打分结果以最后一次打分为主!)
<%= render :partial => 'addjour', :locals => {:homework_attach => homework, :sta => 0,:is_comprehensive_evaluation => 1} %>
<% else %>
<% end %>
<% end %>