<% is_teacher = is_course_teacher User.current,homework.bid.courses.first %>

<div style="padding-bottom: 10px">
  <div style="font-size: 15px">
    <strong><%= l(:lable_teacher_evaluation)%>：</strong>
    <% if teaher_score != "0.00" %>
        <%= render :partial => 'show_score', locals: {:stars => teaher_score}  %>
    <% end %>
    <div style="font-size: 14px;">
      <div style="margin-left: 20px;margin-bottom: 10px;margin-top: 10px;">
        <%= comprehensive_evaluation.first.notes if !comprehensive_evaluation.nil? && comprehensive_evaluation.count > 0%>
      </div>
    </div>
    <% if(teaher_score == "0.00"  && !(!comprehensive_evaluation.nil? && comprehensive_evaluation.count > 0))%>
        <% if is_teacher %>
            <%#= render :partial => 'teacher_evaluation',
                       :locals => {:homework => homework, :comprehensive_evaluation => comprehensive_evaluation}  %>
        <% else %>
            <div style="text-align: center;font-size: 15px;color: #15BCCC;vertical-align:middle;padding-top: 15px; ">
              <strong><%= l(:lable_teacher_evaluation_no)  %></strong>
            </div>
        <% end %>
    <% end %>
  </div>
</div>

<div>
  <% if is_teacher %>
      <%= render :partial => 'teacher_evaluation',:locals => {:homework => homework}  %>
  <% end %>
</div>