+
<%= l(:lable_teacher_evaluation)%>:
+ <% if teaher_score != "0.00" %>
+ <%= render :partial => 'show_score', locals: {:stars => teaher_score} %>
+ <% end %>
+
+
+ <%= comprehensive_evaluation.first.notes if !comprehensive_evaluation.nil? && comprehensive_evaluation.count > 0%>
- <% if is_teacher %>
- <%= render :partial => 'evaluation', :locals => {:homework => homework} %>
-
- <%= render :partial => 'evaluation_add_jour',
- :locals => {:homework_attach => homework,
- :sta => 0,
- :is_comprehensive_evaluation => 1,
- :comprehensive_evaluation => comprehensive_evaluation.first.notes} %>
-
- <% end %>
-<% else %>
- <% if is_teacher %>
-
-
- 作业综评:
- <% if teaher_score != "0.00" %>
- <%= render :partial => 'show_score', locals: {:stars => teaher_score} %>
- <% end %>
-
- <%= render :partial => 'evaluation', :locals => {:homework => homework} %>
-
- <%= render :partial => 'evaluation_add_jour',
- :locals => {:homework_attach => homework,
- :sta => 0,
- :is_comprehensive_evaluation => 1,
- :comprehensive_evaluation => nil} %>
-
-
- <% else %>
-
-
- 作业综评:
- <% if teaher_score != "0.00" %>
- <%= render :partial => 'show_score', locals: {:stars => teaher_score} %>
- <% end %>
-
- <% if teaher_score == "0.00" %>
-
老师还未进行评价!
- <% end %>
-
+ <% 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 %>
+
+ <%= l(:lable_teacher_evaluation_no) %>
+
+ <% end %>
<% end %>
-<% end %>
\ No newline at end of file
+